Search:

Type: Posts; User: Norm

Search: Search took 0.12 seconds.

  1. Replies
    11
    Views
    4,958

    Re: TicTacToe 2D Array help

    * returns value in the map and puts it in the currentMove.


    return 1; // This doesn't look like the value from the map
    ..
    return 2; // ditto
    ..
    return existingMove = '...
  2. Replies
    11
    Views
    4,958

    Re: TicTacToe 2D Array help

    Check where you placed this line:

    else if (Validation(board) == false){
    It is in a chain of if/else if statements.

    Shouldn't it be clear of them. Always Test for a legal move after the user...
  3. Replies
    11
    Views
    4,958

    Re: TicTacToe 2D Array help

    Do you check if the square is occupied before allowing a move there?
    When the computer moves to a square that square should be marked as occupied.
  4. Replies
    11
    Views
    4,958

    Re: TicTacToe 2D Array help

    Are you going to post your new problem? Or what happens now?
Results 1 to 4 of 4