Changeset 168:0f7df983d610
- Timestamp:
- 12/23/10 20:31:09 (5 years ago)
- Branch:
- default
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main.py
r167 r168 €а 61 61 Initialyzing snake and draw it on the field.€а 62 62 Return field back to default (without snakes) after end of the game."""€а 63 €а if self.step_id == 666:€а€а 63 if self.step_id == self.game_length + 666:€а 64 64 self.step_id = 0€а 65 65 self.engine.snakes = [None, None, None, None]€а тАж тАж €а 82 82 if self.dead_snake_check() == False:€а 83 83 return€а 84 €а if self.step_id > self.game_length:€а85 €а self.end()€а86 €а return€а87 84 self.engine.psnakes = self.engine.snakes[:]€а 88 85 self.run()€а тАж тАж €а 92 89 After the end of the game - restarts it with snakes survived in€а 93 90 previous game"""€а €а 91 if self.step_id > self.game_length:€а €а 92 self.end()€а €а 93 return€а 94 94 self.step_id = self.step_id+1€а 95 95 self.engine.step()€а
Note: See TracChangeset
for help on using the changeset viewer.