Last active
August 29, 2015 14:04
-
-
Save pumpkincouture/d61733505cd2aa1c6828 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def fourth_turn | |
if win_two | |
else | |
block_two | |
#block _two either executes or goes into the next_move method, which finds an optimal move. If optimal_move executes, it calls another user_turn, which in turn calls fifth_turn as the computer still has not yet won in its fourth_turn to continue the game. This continues until the last turn, fifth_turn, in which the computer either wins or it's Cat's Game. | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment