Skip to content

Instantly share code, notes, and snippets.

@WideWord
Created September 23, 2014 19:11
Show Gist options
  • Select an option

  • Save WideWord/42f4a9d1e231d5eba924 to your computer and use it in GitHub Desktop.

Select an option

Save WideWord/42f4a9d1e231d5eba924 to your computer and use it in GitHub Desktop.
--> game();
1 - human vs human, 2 - human vs ai: 2
###
###
###
player 1 turn: [1 1]
X##
###
###
player 2 (ai) turn
X##
#O#
###
player 1 turn: [1 2]
XX#
#O#
###
player 2 (ai) turn
XXO
#O#
###
player 1 turn: [3 1]
XXO
#O#
X##
player 2 (ai) turn
XXO
OO#
X##
player 1 turn: [2 3]
XXO
OOX
X##
player 2 (ai) turn
XXO
OOX
XO#
player 1 turn: [3 3]
XXO
OOX
XOX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment