function [ w, p ] = calendar_grid_word ( grid_index )

%*****************************************************************************80
%
%% calendar_grid_word() returns the boundary word for the calendar puzzle grid.
%
%  Discussion:
%
%    The boundary word describes how to trace the boundary by starting
%    at a base point P with coordinates (i,j), and taking a sequence of steps of 
%    in one of 4 directions, as suggested by this diagram:
%
%          U
%   ^      |
%   |      |
%   J  L---P---R
%          |
%          |
%          D   
%
%         I-->
%
%    If the current position P has coordinates (I,J), then
%    the step of given index moves to
%
%      R  (I+1,J  )
%      L  (I-1,J  )
%      U  (I,  J+1)
%      D  (I,  J-1)
%
%    The calendar grid has the shape
%
%      Jan Feb Mar Apr May Jun   *
%      Jul Aug Sep Oct Nov Dec   *
%       01  02  03  04  05  06  07
%       08  09  10  11  12  13  14
%       15  16  17  18  19  20  21
%       22  23  24  25  26  27  28
%       29  30  31   *   *   *   *
%
%    For any particular puzzle (a date) two of the cells become blank.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    24 August 2024
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    character W(WN): the boundary word.
%
%    integer P(1,2): the coordinates of the base point.
%
  p = [ 0, 0 ];

  w = 'RRRURRRRUUUULUULLLLLLDDDDDDD';

  return
end

