Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    The equals() method is for any and all classes.
  2. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    What is done with the value of the next guess?
  3. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    Can you post the current version of the code?
  4. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    Remember the range of indexes for an array is 0 to the array length-1
  5. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    If you know how many digits, store them in reverse order: indexing from 3 to 0 vs 0 to 3
  6. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    Does that do what you want?
    An easy way to print the contents of an array for debugging:

    System.out.println("an ID "+ java.util.Arrays.toString(theArrayName));
  7. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    When you print values for debugging you need to add a label with the number so you know what variable's value is being printed. The long list of numbers that were printed are very hard to use.
    Also...
  8. Replies
    15
    Views
    1,807

    Re: Mastermind Game, Function problem?

    Add an else statement at the end of the if/else if chain that prints out the values of the variables so you can see why neither of the preceding if statements were true,
Results 1 to 8 of 8