Yeah no problem, ill paste the whole assignment.
Mastermind is a logic game for two players. In each round, one player plays the part
of codemaker, and the other plays codebreaker. The codemaker...
Type: Posts; User: Saintroi
Yeah no problem, ill paste the whole assignment.
Mastermind is a logic game for two players. In each round, one player plays the part
of codemaker, and the other plays codebreaker. The codemaker...
Nah the second number is how many are right, but in the wrong place.
So they got rid of the R completely, added a G, and moved the B and O.
the first number is how many are correct completely....
You know, ive been trying to find ways to test and see if the input was invalid, but what if I just find one way to see if it is valid, and then else print invalid?
I'm trying of think how to...
Lol I think so.
Thanks! :D
Well what do you mean by that? You can't just type (String) in front of it. That doesn't work.
So the program I have to write deals with a Mastermind game, which some of you may be familiar with. I have to take input of the format:
2
BYOG 3 0
BGOY 3 0
and tell whether it is a valid...
Got it working now, thanks guys :D Will post on this again if I have another issue.
Ahhh. Well i'm using nextInt() now, I think what ill do is make some bogus String that I dont use to take up the newline character. That sounds easiest!
I didnt think of that before javapenguin, its changed now. Thanks! But if I do what norm suggested, I get this:
Please enter a number followed by that number of guesses:
3
1
2
3
i=0 <
i=1...
I have to do this assignment, and its really weird and complicated, so ill save you that. But I need to read multiple lines of input into an array, the first line of input gives me the number of...