Skip to content

Instantly share code, notes, and snippets.

View AvianAnalyst's full-sized avatar

Kylan Byrd AvianAnalyst

  • Thoughtworks
  • Pacific Northwest
View GitHub Profile
@AvianAnalyst
AvianAnalyst / tic_tac_toe.py
Created November 9, 2019 08:49
Tic Tac Toe written from scratch
from itertools import chain
actual_board = [[0, 0, 0], [0, 0, 0], [0, 0, 0]]
def display_board(board: list) -> None:
print(f' {board[0][0]} | {board[0][1]} | {board[0][2]}')
print('-------------')
print(f' {board[1][0]} | {board[1][1]} | {board[1][2]}')
print('-------------')
print(f' {board[2][0]} | {board[2][1]} | {board[2][2]}')