function boundary_word_sense_test ( )

%*****************************************************************************80
%
%% boundary_word_sense_test() tests boundary_word_sense().
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    15 May 2020
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'boundary_word_sense_test():\n' );
  fprintf ( 1, '  MATLAB/Octave version %s\n', version ( ) );
  fprintf ( 1, '  boundary_word_sense() returns the sense of the polyomino\n' );
  fprintf ( 1, '  defined by a given boundary word.\n' );
  fprintf ( 1, '\n' );

  transforms = [ ...
    'udlr'; ...
    'udrl'; ...
    'dulr'; ...
    'durl'; ...
    'lrdu'; ...
    'lrud'; ...
    'rlud'; ...
    'rldu' ];

  c = 'F';
  s = pentomino_to_boundary_word ( c );
  fprintf ( 1, '  Polyomino "%s" has boundary word "%s"\n', c, s );
  fprintf ( 1, '\n' );

  for i = 1 : 8
    udlr = transforms (i,1:4);
    s2 = boundary_word_transform ( s, udlr );
    sense = boundary_word_sense ( s2 );
    fprintf ( 1, '  "%s" has sense %d\n', s2, sense );
  end

  return
end

