Skip to content

Instantly share code, notes, and snippets.

@nicolethenerd
nicolethenerd / tictactoe.py
Last active January 31, 2024 02:21
Terminal Tic Tac Toe
print("================ Tic Tac Toe ================")
def printBoard(gameState):
"""Print out the current state of the board"""
boardString = '''
0 |1 |2
{0} | {1} | {2}
_____|_____|_____
3 |4 |5
{3} | {4} | {5}