Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 692 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 692 Bytes

turtle-vs-rabbit

My first programming project from university :)


In this project, a race is simulated between rabbit and turtle. In each round, dices are rolling separately for rabbit and turtle. Race finishes when the one of them is reach the finish line.


Turtle:

Dice can be 1, 2 or 3 for turtle.

  • Turtle always moves forward.

Rabbit:

Dice can be 1, 2, 3, 4, 5 or 6 for rabbit.

  • Rabbit moves forward by the value of the dice, if dice is 1, 2, 3 or 6.
  • Rabbit moves backward by the value of the dice, if dice is 4.
  • Rabbit waits 2 tours, if dice is 5.

Images

Image - 3