Quit Terminates manipulations in the block world.
(self)
| 103 | bl.moveTo(b.position) |
| 104 | |
| 105 | def quit(self): |
| 106 | """ |
| 107 | Quit |
| 108 | |
| 109 | Terminates manipulations in the block world. |
| 110 | """ |
| 111 | # Print the output |
| 112 | stacks = self.stacks |
| 113 | for i in range(stacks.blockCount): |
| 114 | lst = ' '.join([str(bl.initialPosition) for bl in stacks[i]]) |
| 115 | print '%2d: %s' % (i, lst) |
| 116 | |
| 117 | |
| 118 | class Stacks(object): |
no test coverage detected