Problem I. 363. (December 2014)
I. 363. The ``Foxes and the Rabbit'' game is a simple and quick game played on a chessboard by two players. One player controls the foxes, the other player controls the rabbit, and only the white squares of the board are used in the game. Initially, four identical black pieces (the ``foxes'') are placed in the first row of the board. The other player then freely positions a white piece (the ``rabbit'') in the last row. The players take turns, and move one of their pieces diagonally to a free neighboring square. The foxes start the game. A fox can move only forward, but there is no such restriction on the rabbit moves. The foxes win if the rabbit is unable to move, and the rabbit wins if it gets behind the foxes.
You should create the above game that can be played also offline. Your program should make sure that the players do not violate the rules. The steps of the game should be visible and recorded in a separate window, from where we can copy them at the end of the game. Moreover, given a sequence of steps, your program should be able to replay an earlier game by using an animation that can be followed easily. In this case, it is not necessary to check whether the given steps are valid.
To solve the task, you can use any programming environment. Your program should be pleasant to look at and easy to use. Due to the required animations, programs that use only text mode will not be considered as complete.
The description of your work (i363.pdf), containing the main steps of the solution and information on how to interpret the notation used to record the steps of a game, together with the source code of your program, and any files necessary to compile and run the program should be submitted in a compressed file i363.zip.
Deadline expired on January 12, 2015.
|9 students sent a solution.|
|10 points:||Kovács 246 Benedek.|
|9 points:||Dombai Tamás, Fényes Balázs, Hamrik Szabin, Kazal Soma.|
|7 points:||1 student.|
|6 points:||2 students.|
|5 points:||1 student.|