MCPcopy Index your code
hub / github.com/python/cpython / setup

Method setup

Lib/turtledemo/nim.py:55–62  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

53 self.game = game
54
55 def setup(self):
56 if self.game.state not in [Nim.CREATED, Nim.OVER]:
57 return
58 self.sticks = [randomrow(), randomrow(), randomrow()]
59 self.player = 0
60 self.winner = None
61 self.game.view.setup()
62 self.game.state = Nim.RUNNING
63
64 def move(self, row, col):
65 maxspalte = self.sticks[row]

Callers

nothing calls this directly

Calls 2

randomrowFunction · 0.85
setupMethod · 0.45

Tested by

no test coverage detected