Skip to content

Instantly share code, notes, and snippets.

View booyah-1902's full-sized avatar

Ayyub Moghul booyah-1902

View GitHub Profile
@booyah-1902
booyah-1902 / tic_tac_toe.py
Created September 20, 2025 21:41
Tic-Tac-Toe Milestone Project coded in Python.
def display_board(board):
"""Display the tic-tac-toe board"""
print("\n ---+---+---")
print(" " + board[1] + ' | ' + board[2] + ' | ' + board[3])
print(" ---+---+---")
print(" " + board[4] + ' | ' + board[5] + ' | ' + board[6])
print(" ---+---+---")
print(" " + board[7] + ' | ' + board[8] + ' | ' + board[9])
print(" ---+---+---")