Simply puts the block on top of the stack numbered newPosition
(self, newPosition)
| 146 | self._position = position |
| 147 | |
| 148 | def moveTo(self, newPosition): |
| 149 | """Simply puts the block on top of the stack numbered newPosition""" |
| 150 | if newPosition == self._position: return |
| 151 | stack = self.stacks[self._position] |
| 152 | stack.remove(self) |
| 153 | self._position = newPosition |
| 154 | self.stacks[newPosition].append(self) |
| 155 | |
| 156 | def removeBlocksFromAbove(self): |
| 157 | """Takes all the blocks from above us and puts them in their original positions |
no test coverage detected