MCPcopy Index your code
hub / github.com/geekcomputers/Python / xy

Function xy

memorygame.py:29–31  ·  view source on GitHub ↗

Convert tiles count to (x, y) coordinates.

(count)

Source from the content-addressed store, hash-verified

27
28
29def xy(count):
30 "Convert tiles count to (x, y) coordinates."
31 return (count % 8) * 50 - 200, (count // 8) * 50 - 200
32
33
34def tap(x, y):

Callers 1

drawFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected