Switch to full style
Java2 codes,problems ,discussions and solutions are here
Post a reply

ROLL DICE and HORSE RACE projects help

Fri Nov 13, 2009 9:29 pm

Hello everybody out there!
I need an urgent help regarding these two simple games for my college's project . I am new to java programming as well as to this forum, and hope you guys can give me enorrnous support in coding them.

1- ROLL DICE
Fruit machine simulation - this applet should generate 3 random colours, in the 3 coloured boxes to simulate the rolling of 3 dice.

The player choose in the 3 drop down menu below the dice as guesses for what will be thrown.
When the button is is pressed, the 3 die are "rolled" and their scores are matched with the guesses in the boxes. The player is told if there are 0, 1, 2 or 3 matches.

2- HORSE RACE
when the game starts the players will be shown the horses waiting patiently at the start line. Before they can run race you must select in the white box at left down corner of the applet which horse you want to bet on. After selecting a horse to back, the start button will become active . You can reselect your bet or start the race.

When the Start Race button is is pressed the horses head off down the track very fast until one the horses crosses the finish line and race ends, and the horses will stop in their current positions.

Thanks

When the Reset button is is pressed the horses are sent back to start ready for another race.
:banghead:



Post a reply
  Related Posts  to : ROLL DICE and HORSE RACE projects help
 race game source code in j2me     -  
 Applet Dice Game Fruit Machine simulation     -  
 Rapid Roll game     -  
 program using structure to store roll number,name     -