Krzysztof Mossakowski
Windows Programming
2005 - Tasks
Cross-sectional task
Version B
5-in-a-row
Demonstration
Game rules:
Two players put white and black tokens on a grid board.
The game is finished when one of the players have five tokens in one row (horizontal, vertical or diagonal)
Technical requirements:
The tokens are put with the mouse
The window is sizeable - the grid and tokens resize to the size of the window, but the number of rows and columns does not change
After the game is finished, a messagebox appears, and the game is restarted
The program should be free of any unproper programming issues (flickering, warnings, uncaught exceptions, etc...)
Approximate points:
The game working accordingly to the rules and requirements above: 10