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

Method makemove

Lib/turtledemo/nim.py:108–111  ·  view source on GitHub ↗
(self, x, y)

Source from the content-addressed store, hash-verified

106 return x - SCREENWIDTH // 2 + WUNIT // 2, SCREENHEIGHT // 2 - y - HUNIT // 2
107
108 def makemove(self, x, y):
109 if self.game.state != Nim.RUNNING:
110 return
111 self.game.controller.notify_move(self.row, self.col)
112
113
114class NimView(object):

Callers

nothing calls this directly

Calls 1

notify_moveMethod · 0.45

Tested by

no test coverage detected