function snakes_matrix_spy ( )

%*****************************************************************************80
%
%% SNAKES_MATRIX_SPY uses MATLAB's spy() to visualize the Snakes and Ladders Matrix.
%
%  Licensing:
%
%    This code is distributed under the GNU LGPL license. 
%
%  Modified:
%
%    17 July 2016
%
%  Author:
%
%    John Burkardt
%

%
%  Evaluate the transition matrix for Snakes and Ladders.
%
  a = snakes_matrix ( );

  spy ( a );
  title ( 'The Snakes and Ladders 101 Sparse Matrix' )

  filename = 'snakes_matrix.png';
  print ( '-dpng', filename );
  fprintf ( 1, '\n' );
  fprintf ( 1, '  A copy of the graphics saved in "%s"\n', filename );

  return
end

