Sha256: f28a6a92219920e84db02f20ffd5f7d08aab6a540b9a924c9e7b37e29f684bb2

Contents?: true

Size: 220 Bytes

Versions: 1

Compression:

Stored size: 220 Bytes

Contents

require File.join('games', 'tictactoe', 'player')

module TTT
  class ComputerPlayerNovice < TTT::Player
    def make_move(game)
      game.computer_choosing_graphic
      game.available_choices.sample
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
games_bfox-0.6.0 lib/games/tictactoe/computer_player_novice.rb