function step = snakes_one_game ( )

%*****************************************************************************80
%
%% snakes_one_game() plays Snakes and Ladders once.
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    17 July 2016
%
%  Author:
%
%    John Burkardt
%
%  Output:
%
%    integer STEP, the number of steps required for a random simulated
%    one-player game of Snakes and Ladders.
%

%
%  Define the snakes and ladders.
%
  [ snake, ladder ] = snakes_ladder_setup ( );
%
%  Begin the simulation.
%
  step = 0;
  i = 0;

  while ( i < 100 )

    step = step + 1;
    [ i, d ] = snakes_move ( i, snake, ladder );

  end

  return
end
