Skip to content

Commit 7547575

Browse files
authored
Update tic tac toe.py
1 parent 85549f9 commit 7547575

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

tic tac toe.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11

22

33

4-
print("******* * ******* \n")
5-
print(" * * * \n")
6-
#print(" * * * \n")
7-
print(" * * * \n")
8-
print(" * * ******* \n")
9-
10-
114

125
def sum(a, b, c):
136
return a + b + c
@@ -40,8 +33,7 @@ def checkWin(xState, zState):
4033
print("O Won the match")
4134
return 0
4235
return -1
43-
44-
36+
# code by varun banka
4537
if __name__ == "__main__":
4638
xState = [0, 0, 0, 0, 0, 0, 0, 0, 0]
4739
zState = [0, 0, 0, 0, 0, 0, 0, 0, 0]
@@ -62,5 +54,5 @@ def checkWin(xState, zState):
6254
print("Match over")
6355
exit = input("apart from power key, press any key to exit \n")
6456
break
65-
66-
turn = 1 - turn
57+
# i have used py installer to make exe file
58+
turn = 1 - turn

0 commit comments

Comments
 (0)