Krzysztof Mossakowski
Windows Programming
2006 - Tasks
Windows Forms: forms and events
Snake
Demonstration
Game's parameters:
10 segments at the start-up
10 moves per second
new segment added at the end of the snake per a half of a second
new bonus for each move with 5% probability
random lifetime of a bonus: 3 - 7 seconds
random vlaue of a bonus: 3 - 12 removed segments
Implementation details:
using of any drawing method is forbidden
the window is resizable
use smooth gradient colors from red (for the head) to white (for the tail)
the snake can flicker (as in the demonstration)
Hints:
classed, methods, properties:
PictureBox.BackColor, PictureBox.BorderStyle
Control.Controls
Color.FromArgb
DateTime.Now