snake
view main.py @ 144:c8dd74a5b383
Changed display names in e2, e4 snakes (they were both Example inconveniently)
author | Daniil Alexeyevsky <me.dendik@gmail.com> |
---|---|
date | Mon, 20 Dec 2010 17:55:25 +0300 |
parents | 29cf8819e04c |
children | 4e9a51811716 |
line source
9 """User Interface:"""
11 """Create Python Battle game window.
12 Initialyze engige of the game."""
21 return
24 """Packing the buttons in root frame.
25 Definition of button functions."""
44 """Ask for snake file loading.
45 Initialyzing snake and draw it on the field.
46 Return field back to default after end of the game."""
50 pass
55 pass
58 return
61 """Run the game with 150 ms step"""
63 return
66 return
70 return
72 """Do the next game step"""
74 return
78 pass
81 pass
84 pass
85 return
88 """Check the number of snakes alive.
89 End the game if alive snake number is less than two."""
94 pass
100 """End the game and raise the window that tels about it."""
103 pass
109 pass