Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/chynl/snake
/ adj
Method
adj
src/pos.py:17–18 ·
view source on GitHub ↗
(self, direc: Direction)
Source
from the content-addressed store, hash-verified
15
return
self.row == other.row and self.col == other.col
16
17
def
adj(self, direc: Direction) ->
"Pos"
:
18
return
Pos(self.row + direc.value[0], self.col + direc.value[1])
Callers
4
new_head
Method · 0.80
longer_path
Method · 0.80
build_hamilton_index
Method · 0.80
neighbors
Method · 0.80
Calls
1
Pos
Class · 0.85
Tested by
no test coverage detected