Code For Tic Tac Toe in Python
Code For Tic Tac Toe in Python
def sum(a, b, c ):
return a + b + c
if __name__ == "__main__":
xState = [0, 0, 0, 0, 0, 0, 0, 0, 0]
zState = [0, 0, 0, 0, 0, 0, 0, 0, 0]
turn = 1 # 1 for X and 0 for O
print("Welcome to Tic Tac Toe")
while(True):
printBoard(xState, zState)
if(turn == 1):
print("X's Chance")
turn = 1 - turn