Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jan 5th, 2005, 9:43 AM   #1
squashed_frog
Newbie
 
Join Date: Jan 2005
Posts: 2
Rep Power: 0 squashed_frog is on a distinguished road
Please please please can anyone help me! I'm throwing myself at your mercy! I've got a java assignment due on the 10th of Jan and i really haven't got a clue what i'm doing or what methods are best to use....is there anyone who would be willing to give me a hand??? all ur help would be greatly appreciated!
squashed_frog is offline   Reply With Quote
Old Jan 5th, 2005, 10:13 AM   #2
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
It'd be really handy if you told us what the assignment was.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Jan 5th, 2005, 10:15 AM   #3
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
from your topic it seems like you have an assignment due concerning mastermind. What exactly do you need help with?
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Jan 5th, 2005, 10:18 AM   #4
squashed_frog
Newbie
 
Join Date: Jan 2005
Posts: 2
Rep Power: 0 squashed_frog is on a distinguished road
I've got to create a mastermind program. The uers has 6 coloured circles to click on. Everytime the user clicks a circle this circle is then displayed in a row until a sequence of four has been selected the computer then works out how many in the user selected sequence are the right colour and are in the right postion. It then displays balck and/or white pegs in response to the user input. I'm not sure how to get the computer to copy and display the circle again once it has been clicked on by the user.... :os
squashed_frog is offline   Reply With Quote
Old Jan 5th, 2005, 10:58 AM   #5
Dizzutch
Professional Programmer
 
Dizzutch's Avatar
 
Join Date: Dec 2004
Location: Worcester, MA
Posts: 441
Rep Power: 4 Dizzutch is on a distinguished road
Send a message via ICQ to Dizzutch Send a message via AIM to Dizzutch Send a message via MSN to Dizzutch Send a message via Yahoo to Dizzutch
i assume you're using Java.
post some code the code that reads in the users clicks, and the code that is supposed to redraw the circles. We need way more information before we can help you. try to be as specific as possible
__________________
naked pictures of you | PFO F@H stats
Dizzutch is offline   Reply With Quote
Old Jan 5th, 2005, 6:30 PM   #6
thechristelegacy
Expert Programmer
 
thechristelegacy's Avatar
 
Join Date: Jul 2004
Location: Somerset, Pa
Posts: 708
Rep Power: 5 thechristelegacy is on a distinguished road
Send a message via AIM to thechristelegacy Send a message via MSN to thechristelegacy
Yeah, show us what you've got and we'll be glad to help
thechristelegacy is offline   Reply With Quote
Old Jan 8th, 2005, 7:37 AM   #7
lepricaun
Hobbyist Programmer
 
lepricaun's Avatar
 
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5 lepricaun is on a distinguished road
well, since java looks a lot like C, you might have some use for a program i have written several months ago: mastermind.

the problem i had was very clear, how to detect if the color is correct but not at the correct place etc and then print out the corresponding pin (or in my case character).

the program i have written is command line based, but i think the part where you let the program figure out what to put on the screen might be of help to you.

the program is released under the GPL (open source), so you can just download it and the source will be included...
__________________
http://www.white-scorpion.nl
lepricaun is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 7:10 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC