Skip to content

Instantly share code, notes, and snippets.

@ellehallal
Last active April 24, 2019 09:01
Show Gist options
  • Save ellehallal/73b0e799e1b127cd52398bdd2c029d64 to your computer and use it in GitHub Desktop.
Save ellehallal/73b0e799e1b127cd52398bdd2c029d64 to your computer and use it in GitHub Desktop.
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