Skip to content

Instantly share code, notes, and snippets.

@PedroHenriquefavaro
PedroHenriquefavaro / tictactoe.py
Created February 27, 2024 02:17 — forked from Estherns/tictactoe.py
A terminal based tic tac toe game in Python
#Let's start by initializing our game board
board = ["-","-","-",
"-","-","-",
"-","-","-"]
#Know if game is still going on by setting it to True
game_on = True
# Initialize our current player to be X
current_player = "X"
@PedroHenriquefavaro
PedroHenriquefavaro / tictactoe.py
Created February 27, 2024 02:17 — forked from Estherns/tictactoe.py
A terminal based tic tac toe game in Python
#Let's start by initializing our game board
board = ["-","-","-",
"-","-","-",
"-","-","-"]
#Know if game is still going on by setting it to True
game_on = True
# Initialize our current player to be X
current_player = "X"