Sha256: fe34cfb43e6c8f2045e49d58b2c550510d3cc99b34483dc2c428a8678a852680

Contents?: true

Size: 397 Bytes

Versions: 1

Compression:

Stored size: 397 Bytes

Contents

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

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.6.0 lib/games/tictactoe/computer_player_expert.rb