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

Method undo

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

Source from the content-addressed store, hash-verified

128 self.moves.append(copy.copy(self.board))
129
130 def undo(self):
131 #breakpoint()
132 if len(self.moves) > 1:
133 self.moves.pop()
134 self.board = copy.copy(self.moves[-1])
135
136
137'''

Callers 1

dropspin.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected