Sha256: 6b943e5eb0f7a7a51d847b4f020fc2de68db9289e9ca15e7d35b89deee1f7f7f

Contents?: true

Size: 335 Bytes

Versions: 1

Compression:

Stored size: 335 Bytes

Contents

require_relative '../tictactoe/player'

module TTT
  class ComputerPlayerExpert < TTT::Player
    def make_move(game)
      game.computer_choosing_graphic
      minimax = TTT::Minimax.new(game.board, game.number_of_turns_taken, game.player_1_value, game.player_2_value)
      minimax.run_minimax
      minimax.choice
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
games_bfox-0.4.0 lib/games/tictactoe/computer_player_expert.rb