Starting from:

$25

CSE102 - Computer Programming - Homework 6 - Mini Racing Game - Solved

In this assignment, you are asked to write a mini game for 2 players. The game is described below.

  

In this game, there are two seperate roads for the players. The player who will start first will be chosen by tossing the dice. Likewise, the players move along their way (clockwise) by tossing the dice. If a player ends up their movement on a penalty point (indicated by X) they should take 2 steps backward. Whoever ends up on (or beyond) the finish line (indicated by _) wins the game.  

•           The dots are used to draw a path for the players. You may use different characters such as “|” and “-”.

•            -> indicates the position of the player 1.

•           -> indicates the position of the player 2.

•           -> indicates the finish line.

•           -> indicates the penalty points.


More products