Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Replies
    10
    Views
    1,899

    Re: Need help with Logic of a Tic Tac Toe game.

    Also use this for easy debugging:

    System.out.println("1 "+java.util.Arrays.deepToString(board));

    Add lots of them. Change the "1" to be unique in each println.
  2. Replies
    10
    Views
    1,899

    Re: Need help with Logic of a Tic Tac Toe game.

    Try some standalone testing of the method.
    Create an array with a winning position and call the checkForWinner() method and print out what it returns.
    Try it with lots of different winning...
  3. Replies
    10
    Views
    1,899

    Re: Need help with Logic of a Tic Tac Toe game.

    The Move methods should test if the square is occupied before making the move.
  4. Replies
    10
    Views
    1,899

    Re: Need help with Logic of a Tic Tac Toe game.

    Where is the beginning of the loop that is being repeated?
    Where is a winning position tested for?
    Are there two players or does the computer play one side?
  5. Replies
    10
    Views
    1,899

    Re: Need help with Logic of a Tic Tac Toe game.

    Please explain what that means? Are you trying to get input from the user? The Scanner class has methods that will read user input from the console.
Results 1 to 5 of 5