MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / setup

Method setup

tools/python-3.11.9-amd64/Lib/turtledemo/nim.py:146–155  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

Callers 4

test_debug_modeMethod · 0.45
setupMethod · 0.45
mainFunction · 0.45
setupFunction · 0.45

Calls 3

displayMethod · 0.95
tracerMethod · 0.80
colorMethod · 0.45

Tested by 1

test_debug_modeMethod · 0.36