Skip to content

Instantly share code, notes, and snippets.

View lanzhang76's full-sized avatar
🧶
Making

Lan Zhang lanzhang76

🧶
Making
View GitHub Profile
@lanzhang76
lanzhang76 / tic_game.py
Last active December 23, 2019 06:51
tic-tac-toe-RC
# we need a board with 9 slots, two players alternate, eventually one needs to be pc
# player one is "x", player two/future computer is "o"
winner = "F" # "F" is false, "T" is true, "P" is tie
playerOne = True
# top: 0,0 0,1 0,2
# mid: 1,0 1,1 1,2
# bot: 2,0 2,1 2,2
board = [[" "," "," "],
[" "," "," "],