MCPcopy
hub / github.com/chynl/snake / head

Method head

src/snake.py:192–193  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

190 )
191
192 def head(self) -> Pos:
193 return self.coords[-1]
194
195 def tail(self) -> Pos:
196 return self.coords[0]

Callers 8

new_headMethod · 0.95
next_direcMethod · 0.80
shortest_pathMethod · 0.80
longer_pathMethod · 0.80
build_hamilton_indexMethod · 0.80
hamilton_direcMethod · 0.80
hamilton_pathMethod · 0.80
stateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected