# File src/play.rb, line 28
  def play
    begin
      while @game.history.length < @limit
        roll = rand(6) + 1
        move_to_apply = @named_players[@game.current_player].best_move(@game, roll)
        puts "Move #{@game.history.length + 1}: Player #{@game.current_player} rolled #{roll}: making move #{move_to_apply}" if @verbose
        @game.apply_moves! [move_to_apply]
        puts @game if @verbose
      end
      puts "Game terminated after #{@game.history.length} moves" if @verbose
      [:draw, 0]
    rescue GameWonNotice => win_notification
      winner = win_notification.message[-1,1]
      puts "Game won by #{winner} in #{@game.history.length} moves" if @verbose
      [@named_players[winner], @game.history.length]
    end
  end