Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ game_over
Method
game_over
Lib/turtledemo/nim.py:78–79 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
76
self.player = 0
77
78
def
game_over(self):
79
return
self.sticks == [0, 0, 0]
80
81
def
notify_move(self, row, col):
82
if
self.sticks[row] <= col:
Callers
1
move
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected