Go Back   Java Programming Forums > Java Standard Edition Programming Help > AWT / Java Swing > Java Applets


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 14-11-2009, 04:23 PM
Junior Member
 

Join Date: Nov 2009
Posts: 4
Thanks: 1
Thanked 0 Times in 0 Posts
makarov is on a distinguished road
Default 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.
Attached Images
File Type: jpg Roll Dice.jpg (5.3 KB, 2 views)
Attached Files
File Type: txt DiceRoller1.txt (841 Bytes, 1 views)
File Type: txt Die1.txt (1.4 KB, 1 views)




Last edited by makarov; 15-11-2009 at 10:41 PM. Reason: people were getting the wrong msg
Reply With Quote Share this thread on Facebook
Sponsored Links
Java Training from DevelopIntelligence
  #2 (permalink)  
Old 14-11-2009, 04:31 PM
copeg's Avatar
Moderator
 
9 Highscores

Join Date: Oct 2009
Posts: 570
Thanks: 7
Thanked 131 Times in 125 Posts
copeg will become famous soon enoughcopeg will become famous soon enough

I'm feeling Sleepy
Default 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
Reply With Quote
The Following User Says Thank You to copeg For This Useful Post:
makarov (15-11-2009)
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Similar Threads
Thread Thread Starter Forum Replies Last Post
Simple Form Help dsen Web Frameworks 1 09-09-2009 04:32 AM
Someone please help me write a simple program!!! ocean123 Loops & Control Statements 3 15-06-2009 02:46 AM
Help with older yahoo games jar file, will pay! proudofmylife Paid Java Projects 9 22-05-2009 07:15 AM
NEW: Forum Arcade Games & Member Highscores! JavaPF The Cafe 0 03-02-2009 09:54 AM


100 most searched terms
Search Cloud
2 dimensional arraylist java 2d arraylist java actionlistener actionlistener in java addactionlistener addactionlistener java convert double to integer java double format java double to integer in java double to integer java drag en drop programmeren java eclipse shortcut keys exception in thread "awt-eventqueue-0" java.lang.outofmemoryerror: java heap space exception in thread "main" java.lang.nullpointerexception exception in thread "main" java.lang.outofmemoryerror: java heap space format double in java format double java get mouse position java java 2d arraylist java actionlistener java double format java double formatting java double to int java double to integer java format double java forum java forums java get mouse position java list to map java mouse position java programming forum java programming forums java programming practice problems java send keystrokes to another application java two dimensional arraylist java.io.ioexception: premature eof java.lang.classformaterror: truncated class file java.lang.outofmemoryerror: java heap space java.util.arraylist jbutton action jbutton actionlistener jtextarea font jtextfield font size jxl.read.biff.biffexception: unable to recognize ole stream programming mutators and generics smack api two dimensional arraylist two dimensional arraylist java unable to sendviapost to url what is the smallest positive number that is evenly divisible by all of the numbers from 1 to 20?

All times are GMT. The time now is 01:56 AM.
Powered by vBulletin® Copyright ©2000-2009, Jelsoft Enterprises Ltd.