Help! how would you code these simple games?
This game should generate 3 random colours, in the 3 coloured boxes to simulate the rolling of 3 dice. The player chooses in the 3 drop down menu below the dice as guesses for what will be thrown.
When the button 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.
Re: Help! how would you code these simple games?
Because you say are new to java, sun provides a wealth of online tutorials ( The Java™ Tutorials ). Look at using the Swing interface ( Trail: Creating a GUI With JFC/Swing (The Java™ Tutorials) ) to create the user interfaces. Because this is the Applet forum, also see Lesson: Applets (The Java™ Tutorials > Deployment) Hopefully these will get you started in the right direction