Skip to content

Instantly share code, notes, and snippets.

@pumpkincouture
Last active August 29, 2015 14:04
Show Gist options
  • Save pumpkincouture/d61733505cd2aa1c6828 to your computer and use it in GitHub Desktop.
Save pumpkincouture/d61733505cd2aa1c6828 to your computer and use it in GitHub Desktop.
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