Skip to content

Instantly share code, notes, and snippets.

View AnimXhafa97's full-sized avatar

Anim Xhafa AnimXhafa97

  • Pennsylvania, USA
View GitHub Profile
@AnimXhafa97
AnimXhafa97 / tictactoe.py
Created June 19, 2023 21:38
2 player Tic Tac Toe in Python
#2-player tic tac toe
# Create the board as a list of empty spaces
board = [" " for i in range(9)]
# print board in terminal
def print_board():
print("_____________")
print("|", board[0], "|", board[1], "|", board[2], "|")
print("-------------")