Search:

Type: Posts; User: helloworld922

Search: Search took 0.11 seconds.

  1. Replies
    6
    Views
    2,146

    [SOLVED] Re: TicTacToe program - Space taken?

    Ok, here are a few things:

    1. Remember what you did to SpaceTaken? Try to do that with your other methods (i.e. get rid of all those unecessary if/else's. Only 1 pair is needed, 0 if you make some...
  2. Replies
    6
    Views
    2,146

    [SOLVED] Re: TicTacToe program - Space taken?

    1. Don't use an int array if you're trying to store characters. There's conveniently a character data type.
    2. Are you sure you're populating the array a with 'X' and 'O' (or even at all)? Java is...
  3. Replies
    6
    Views
    2,146

    [SOLVED] Re: TicTacToe program - Space taken?

    Wow, I would strongly recommend changing your spaceTaken method. You can directly put x into the index of a, therefore reducing your code down to one if-else statement.

    I'm somewhat confused, what...
Results 1 to 3 of 3