(self, row, col)
| 100 | self.showturtle() |
| 101 | |
| 102 | def coords(self, row, col): |
| 103 | packet, remainder = divmod(col, 5) |
| 104 | x = (3 + 11 * packet + 2 * remainder) * WUNIT |
| 105 | y = (2 + 3 * row) * HUNIT |
| 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: |
no outgoing calls