MCPcopy Create free account
hub / github.com/asweigart/PythonStdioGames / getFeetStr

Method getFeetStr

src/gamesbyexample/ducklings.py:182–187  ·  view source on GitHub ↗

Returns the string of the duckling's feet.

(self)

Source from the content-addressed store, hash-verified

180 return bodyStr
181
182 def getFeetStr(self):
183 """Returns the string of the duckling's feet."""
184 if self.body == CHUBBY:
185 return ' ^^ '
186 elif self.body == VERY_CHUBBY:
187 return ' ^ ^ '
188
189 def getNextBodyPart(self):
190 """Calls the appropriate display method for the next body

Callers 1

getNextBodyPartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected