Search:

Type: Posts; User: Saintroi

Search: Search took 0.10 seconds.

  1. Replies
    22
    Views
    2,006

    Re: Input into array.

    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...
  2. Replies
    22
    Views
    2,006

    Re: Input into array.

    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....
  3. Replies
    22
    Views
    2,006

    Re: Input into array.

    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...
  4. Replies
    22
    Views
    2,006

    Re: Input into array.

    Lol I think so.

    Thanks! :D
  5. Replies
    22
    Views
    2,006

    Re: Input into array.

    Well what do you mean by that? You can't just type (String) in front of it. That doesn't work.
  6. Replies
    22
    Views
    2,006

    Re: Input into array.

    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...
  7. Replies
    22
    Views
    2,006

    Re: Input into array.

    Got it working now, thanks guys :D Will post on this again if I have another issue.
  8. Replies
    22
    Views
    2,006

    Re: Input into array.

    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!
  9. Replies
    22
    Views
    2,006

    Re: Input into array.

    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...
  10. Replies
    22
    Views
    2,006

    Input into array.

    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...
Results 1 to 10 of 10