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

Method clear

inprogress/dropspin.py:29–35  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28
29 def clear(self):
30 self.board = {} # Keys are (x, y) tuples, values are Boolean.
31 for column in range(self.size):
32 for row in range(self.size):
33 self.board[(column, row)] = EMPTY
34 self.moves = []
35 self.rememberBoard()
36
37
38 def display(self):

Callers 15

__init__Method · 0.95
sandfallbext.pyFile · 0.80
dropspin.pyFile · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
randomwalk.pyFile · 0.80
mainFunction · 0.80
mainFunction · 0.80
shimmer.pyFile · 0.80

Calls 1

rememberBoardMethod · 0.95

Tested by

no test coverage detected