Search:

Type: Posts; User: chrisob

Search: Search took 0.11 seconds.

  1. Replies
    7
    Views
    1,387

    [SOLVED] Re: Simple Increment in a Loop error

    Fixed, I think! :)


    import java.util.Scanner;


    public class rockPaperSci {

    /**
    * @param args
  2. Replies
    7
    Views
    1,387

    [SOLVED] Re: Simple Increment in a Loop error

    Will do. It'll wait until later when I don't have a 3 year old trying to hang off me! :)

    Shall report back. This won't beat me! :)
  3. Replies
    7
    Views
    1,387

    [SOLVED] Re: Simple Increment in a Loop error

    Actually, you are right. It's only exiting when both are 3. I thought that it should exit when either of the variables hit 3, whichever one, it doesn't matter.

    My idea was

    Do

    {

    < code >
  4. Replies
    7
    Views
    1,387

    [SOLVED] Re: Simple Increment in a Loop error

    Yup, it definitely exits. Unless I'm being stupid, I thought that || meant OR so that the loop would continue while totalCompWin is less than 3 OR totalUserWin is less than 3. Once either hits 3, the...
  5. Replies
    7
    Views
    1,387

    [SOLVED] Simple Increment in a Loop error

    It's probably something stupid, but I just can't see it as the same idea is working in the same code. Basically, it's a Rock, Paper, Scissors games - it ends when either the computer or user gets to...
Results 1 to 5 of 5