![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jan 2005
Posts: 2
Rep Power: 0
![]() |
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!
|
|
|
|
|
|
#2 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
It'd be really handy if you told us what the assignment was.
|
|
|
|
|
|
#3 |
|
Professional Programmer
|
from your topic it seems like you have an assignment due concerning mastermind. What exactly do you need help with?
|
|
|
|
|
|
#4 |
|
Newbie
Join Date: Jan 2005
Posts: 2
Rep Power: 0
![]() |
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
|
|
|
|
|
|
#5 |
|
Professional Programmer
|
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 |
|
|
|
|
|
#6 |
|
Expert Programmer
|
Yeah, show us what you've got and we'll be glad to help
![]() |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
Join Date: Aug 2004
Location: The Netherlands
Posts: 111
Rep Power: 5
![]() |
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 |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|