how would you code these simple games?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • makarov
    New Member
    • Nov 2009
    • 1

    how would you code these simple games?

    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 (every step would be good with some comments).

    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.

    When the Reset button is is pressed the horses are sent back to start ready for another race. If anyone could be of help i'd appreciate it. THANKS
    Attached Files
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Please take the time to research the problem before you post your question. The experts here are more than willing to help you with a specific problem but you have to do your part to learn the basics and also formulate a specific question we can help with. Please take the time to read over the Posting Guidelines, specifically the section on Before you Post your Question.

    Before posting any question you are expected to attempt to find and work on a solution. When you find a specific problem with your attempt, that is the time to post here requesting assistance with any difficulties you have or about a particular function of the code that you don't know how to achieve. When posting your problem, details of the problem itself and where it's found are the bare minimum information required. The experts on this site are more than happy to help you with your problems but they cannot do your assignment/program for you.

    Code may be posted for reference purposes, but please don't expect us to work out the meaning of your problem by reverse-engineering your code. The question you post must make sense in its own right.

    Comment

    Working...