MCPcopy Create free account
hub / github.com/geekcomputers/Python / checkwin

Function checkwin

tik_tak.py:77–96  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

75
76
77def checkwin():
78 if board[1] == board[2] == board[3]:
79 return 1
80 elif board[4] == board[5] == board[6]:
81 return 1
82 elif board[7] == board[8] == board[9]:
83 return 1
84 elif board[1] == board[4] == board[7]:
85 return 1
86
87 elif board[2] == board[5] == board[8]:
88 return 1
89 elif board[3] == board[6] == board[9]:
90 return 1
91 elif board[1] == board[5] == board[9]:
92 return 1
93 elif board[3] == board[5] == board[7]:
94 return 1
95 else:
96 print("\n\nGame continue")
97
98
99def play():

Callers 1

enter_numberFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected