zondag 15 november 2009

Project: rolling the dice

Time for a new project. This time we are going to build a simple game: Rolling the dice. The game works as follows:

1. Player one presses a button, the dice will role
2. The result of the throw is shown.
3. Player two presses a button, the dice will role
4. The result of the throw is shown.
5. The player with the highest amount of pips wins
6. When any button is pressed, the game resets.

To indicate the player it's his turn, a LED will blink near his button. A throw will show random numbers on the dice for a while, which pauses after a second showing the result. When a player wins, the winning result and his LED will blink. When the game ends in a tie, both players win.

During this project we will learn about communicating with others IC's using I2C. We will learn how to expand the number of I/O pins on the Arduino. Also we be able to read buttons and build dice.

Geen opmerkingen:

Een reactie posten