function t_puzzle_test ( )

%*****************************************************************************80
%
%% t_puzzle_test() tests t_puzzle().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 February 2022
%
%  Author:
%
%    John Burkardt
%

  addpath ( '../boundary_word_right' );
  addpath ( '../gurobi_solution_read' );
  addpath ( '../t_puzzle' );

  timestamp ( );
  fprintf ( 1, '\n' );
  fprintf ( 1, 't_puzzle_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  t_puzzle() analyzes four versions of the T tiling puzzle.\n' );

  object_elements_test ( );
  rectangle_elements_test ( );
  rectangle_nodes_test ( );
  t_configuration_test ( );
  t_grid_word_test ( );
  for grid_index = 1 : 4
    t_gurobi_test ( grid_index );
  end
  for grid_index = 1 : 4
    t_puzzle_lp ( grid_index );
  end
  t_tile_word_test ( );
  word_plot_test ( );
%
%  Terminate.
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 't_puzzle_test():\n' );
  fprintf ( 1, '  Normal end of execution.\n' );
  fprintf ( 1, '\n' );
  timestamp ( );

  rmpath ( '../boundary_word_right' );
  rmpath ( '../gurobi_solution_read' );
  rmpath ( '../t_puzzle' );

  return
end
function timestamp ( )

%*****************************************************************************80
%
%% timestamp() prints the current YMDHMS date as a timestamp.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    14 February 2003
%
%  Author:
%
%    John Burkardt
%
  t = now;
  c = datevec ( t );
  s = datestr ( c, 0 );
  fprintf ( 1, '%s\n', s );

  return
end

