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

Method display

src/gamesbyexample/slitheringsnakes.py:160–164  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

158 self.body.pop() # Delete the last (x, y) tuple in self.body.
159
160 def display(self):
161 for i, (x, y) in enumerate(self.body):
162 bext.goto(x * 2, y)
163 bext.fg(self.colors[i])
164 print(BLOCK + BLOCK, end='')
165
166
167def getRandomNeighbor(x, y):

Callers 1

mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected