Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
29
def
xy(count):
30
"Convert tiles count to (x, y) coordinates."
31
return
(count % 8) * 50 - 200, (count // 8) * 50 - 200
32
33
34
def
tap(x, y):
Callers
1
draw
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected