Last active
April 24, 2019 09:01
-
-
Save ellehallal/73b0e799e1b127cd52398bdd2c029d64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
available_squares.each do |square| | |
board.player_make_move(current_player, square) | |
best_score[square] = | |
-1 * find_best_move(board, depth + 1, opponent, current_player) | |
board.reset_square(square) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment