function w = hexiamond_boundary_word ( index )

%*****************************************************************************80
%
%% hexiamond_boundary_word: the boundary word for a hexiamond.
%
%  Discussion:
%
%    The boundary word describes how to trace the boundary by taking a
%    sequence of steps of unit length in one of 6 directions, as suggested
%    by this diagram:
%
%       5     0
%        \   /
%    4 <-- * --> 1
%        /   \
%       3     2
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    07 September 2020
%
%  Author:
%
%    John Burkardt
%
%  Input:
%
%    integer INDEX, a value between 1 and 12.
%
%  Output:
%
%    string W: the boundary word.
%

%
%  bat/chevron
% 
 if ( index == 1 )
    w = '11004343'; 
%
%  butterfly
%
  elseif ( index == 2 )
    w = '11504423';
%
%  club/crook
%
  elseif ( index == 3 )
    w = '11044532';
%
%  crown
%
  elseif ( index == 4 )
    w = '11045342'; 
%
%  hexagon
%
  elseif ( index == 5 )
    w = '105432'; 
%
%  lobster
%
  elseif ( index == 6 )
    w = '02055332'; 
%
%  pistol/signpost
%
  elseif ( index == 7 )
    w = '01045332';
%
%  rhomboid/bar
%
  elseif ( index == 8 )
    w = '11104443';
%
%  shoe/hook
%
  elseif ( index == 9 )
    w = '10205433';
%
%  snake
%
  elseif ( index == 10 )
    w = '01053432';
%
%  sphinx
%
  elseif ( index == 11 )
    w = '11154533';
%
%  yacht
%
  elseif ( index == 12 )
    w = '11053533';
  else
    w = [];
  end

  return
end

