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

Method stat

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

Source from the content-addressed store, hash-verified

65 print(f"{char} {target} was not in known locations")
66
67 def stat(self) -> Tuple[Point, str, int, str]:
68 reply = self.send("STAT")
69 parts = reply.split(" ")
70 cx = int(parts[1])
71 cy = int(parts[2])
72 facing = parts[3]
73 battery = int(parts[4].strip("%"))
74 payload = parts[5]
75 self.location = Point(cx, cy)
76 self.facing = Direction(facing)
77 return (self.location, facing, battery, payload)
78
79
80 def scan(self) -> Tuple[str, str, str]:

Callers 5

__init__Method · 0.95
charge_if_neededMethod · 0.95
sendMethod · 0.95
scanMethod · 0.95
pick_unknownMethod · 0.95

Calls 3

sendMethod · 0.95
PointClass · 0.90
DirectionClass · 0.90

Tested by

no test coverage detected