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
I ran it as well, and I should also state that you can't copy and paste this one out of the BlueJ compiler, which is what killer is using.
Anyway,
The problem is in the method binarySearch2, on...
Well what do you mean by that? You can't just type (String) in front of it. That doesn't work.
Heck, I cant even find a list like that. I may just skip this one. Hopefully I can get the one I posted about in another thread on here solved. 5 out of 6 isnt bad.
Woah. Your top of the list in Google is a lot better than mine. Lol. I'll check this out and see if it helps. If not, I may just find a list of all the vampire numbers from 1 - 100,000 and say if the...
Not good. I cant find anything on this subject really. I dont know why. I guess i'll just keep looking. Its hard to find time though.
Yeah I didnt mention did I? I think the it should print 126, I belive, but before that it should have it in that format due to the for loop in the testVamp method, which has a println for each...
The number is input as a string, then put in a variable as a string. I then make another variable and use parseInt to make it the input, but as an Integer.
Thats all in the main method. I then...
Hm, well when I put in a number like 126, its printing 126 instead of
1
2
6
like I want it to. Actually I need it to.
I am really stumped on this program. Geez :/
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...
Yeah thats what I meant. I'm a doofus and put int, but what it is is a String of a number that I need to separate into an array of ints. I think I did it right.
And thats what I thought too, but...
Well, ive got some code. Which is better than what I had before. But it doesn't really do anything.. I dont know really how to test these things.. Its frustrating.
import java.util.*;
public...
Alright sounds good. I just.. ugh.. i'm trying to think of how to start this and ive hit a wall. I guess im gonna go play some games and go to a softball game and see if it hits me. Hopefully by...
Yeah that is the major part, I agree. I havent come up with an algorithm yet though, ive set my program up to accept an int and I have a string set to it as well as an int variable, I just dont know...
Alright I guess. But to clarify, I was not asking anyone to do this for me, I wanted a basic starting algorithm or tips. But I guess I will code what I know I can until I get to something I dont know...
I have to write a program that finds what are called "Vampire Numbers." These are numbers in which the numbers of the number can be rearranged to make a set of numbers that multiply to get that...
Hmm... ive never used a map before, but I looked it up and it seems a bit weird. Could you give me a basic explanation as to how to do what I need to do with it?
That makes sense. I will try that as soon as I get a chance tomorrow. And squeakbox, ready was the conditional you have to use for a BufferedReader, and I intended for the user to enter e when done,...