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

Method face

python/dog.py:99–104  ·  view source on GitHub ↗
(self, direction: Direction)

Source from the content-addressed store, hash-verified

97 self.facing = self.facing.left()
98
99 def face(self, direction: Direction):
100 if self.facing == direction:
101 return
102 else:
103 self.turn_right()
104 return self.face(direction)
105
106 def move(self):
107 self.send("MOVE")

Callers 5

sendMethod · 0.95
gotoMethod · 0.95
approachMethod · 0.95
build_atMethod · 0.95
clear_columnFunction · 0.80

Calls 1

turn_rightMethod · 0.95

Tested by

no test coverage detected