Changeset 164:de9d0b9071da
Legend:
- Unmodified
- Added
- Removed
-
engine.py
r160 r164 €а 201 201 else:€а 202 202 old_snake.cells = cells€а €а 203 self.psnakes = self.snakes[:]€а 203 204 return self.snakes[snake_number]€а 204 205 €а -
main.py
r163 r164 €а 58 58 """Ask for snake file loading.€а 59 59 Initialyzing snake and draw it on the field.€а 60 €а Return field back to default after end of the game."""€а€а 60 Return field back to default (without snakes) after end of the game."""€а 61 61 if self.step_id == 666:€а 62 62 self.step_id = 0€а тАж тАж €а 78 78 After the end of the game - restarts it with snakes survived in€а 79 79 previous game"""€а 80 €а self.engine.psnakes [:]= self.engine.snakes[:]€а€а 80 self.engine.psnakes = self.engine.snakes[:]€а 81 81 if self.step_id == 666:€а 82 82 self.restart()€а
Note: See TracChangeset
for help on using the changeset viewer.