repl.it
@aaku/

Tic Tac Toe

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
x_or_o = input("Do you want to be X or O?")
num_on_board = [1,2,3,4,5,6,7,8,9]
marker = ""
marker_2 = ""
space_1 = [""]
space_2 = [""]
space_3 = [""]
space_4 = [""]
space_5 = [""]
space_6 = [""]
space_7 = [""]
space_8 = [""]
space_9 = [""]
def board():
  print(space_1,"|",space_2,"|",space_3)
  print("----------")
  print(space_4,"|",space_5,"|",space_6)
  print("----------")
  print(space_7,"|",space_8,"|",space_9)
if marker == "X":
  marker_2 == "O"
elif marker == "O":
  marker_2 == "X"
space_board = [space_1,space_2,space_3,space_4,space_5,space_6,space_7,space_8,space_9]
if x_or_o == "x":
  marker = "X"
  board()
  print("1","|","2","|","3")
  print("-------")
  print("1","|","2","|","3")
  
Fetching token
?