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

Method setup

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

Source from the content-addressed store, hash-verified

142 self.screen.tracer(True)
143
144 def setup(self):
145 self.screen.tracer(False)
146 for row in range(3):
147 for col in range(self.model.sticks[row]):
148 self.sticks[(row, col)].color(SCOLOR)
149 for row in range(3):
150 for col in range(self.model.sticks[row], MAXSTICKS):
151 self.sticks[(row, col)].color("white")
152 self.display("Your turn! Click leftmost stick to remove.")
153 self.screen.tracer(True)
154
155 def notify_move(self, row, col, maxspalte, player):
156 if player == 0:

Callers 2

setupMethod · 0.45
mainFunction · 0.45

Calls 3

displayMethod · 0.95
tracerMethod · 0.45
colorMethod · 0.45

Tested by

no test coverage detected