Skip to content

Instantly share code, notes, and snippets.

@r2p2
Created March 16, 2018 12:59
Show Gist options
  • Save r2p2/181ae07415da81559b2020d0fd627435 to your computer and use it in GitHub Desktop.
Save r2p2/181ae07415da81559b2020d0fd627435 to your computer and use it in GitHub Desktop.
% bin/python main.py
add_client: bot1
_ _ _
_ _ _
_ _ _
waiting for players
add_client: bot2
_ _ _
_ _ _
_ _ _
move: bot1 0 0
X _ _
_ _ _
_ _ _
move: bot2 1 0
X O _
_ _ _
_ _ _
move: bot1 2 0
X O X
_ _ _
_ _ _
move: bot2 0 1
X O X
O _ _
_ _ _
move: bot1 1 1
X O X
O X _
_ _ _
move: bot2 2 1
X O X
O X O
_ _ _
move: bot1 0 2
X O X
O X O
X _ _
('winner: ', 'bot1')
('looser: ', 'bot2')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment