The game is for a coursework only; it is a homework and the game is only using coregraphic to draw the stuff ... i will attach a source code that you can use in your work ... the behavior of the game is as follows:
There are two "snakes" each with a different colored head. Initially only the two heads are seen, near diagonally opposite corners. One snake is controlled by the player, the other by the computer.
Each iteration of the game clock each head advances one rectangle (square) in one of four directions and the previously occupied rectangle turns black. The snake grows. If the snake advances onto a black area that snake loses.
Use a Tab Controller and provide the following screens:
A home screen that show the score, player and computer
A config screen that allow the speed and possibly other items of your choice to be configured.
A play screen. The play screen should use the entire display area.
one of the two users can use four buttons to move the snake to left, right, up and down ...
Some code that might be useful:
[NSString stringWithFormat:@" %0X-%0X", x_pos, y_pos]
// Use invalidate to teminate the timer notifications
// View controllers have a hidesBottomBarWhenPushed property