MCPcopy Create free account
hub / github.com/JoshuaPostel/texaform / scan

Method scan

python/dog.py:80–89  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

78
79
80 def scan(self) -> Tuple[str, str, str]:
81 reply = self.send("SCAN")
82 (point, facing, _, _) = self.stat()
83 chars = (reply[5], reply[6], reply[7])
84 for i, char in enumerate(chars):
85 char_location = point.forward(facing, i + 1)
86 if not self.depot_area.contains(char_location):
87 self.char_locations[char].add(char_location)
88
89 return chars
90
91 def turn_right(self):
92 self.send("TURN R")

Callers 4

hug_rightMethod · 0.95
drop_withinMethod · 0.95
clear_columnFunction · 0.80
main.pyFile · 0.80

Calls 4

sendMethod · 0.95
statMethod · 0.95
forwardMethod · 0.80
containsMethod · 0.80

Tested by

no test coverage detected