java.lang.IllegalArgumentException: invalid row index: 3

Coderanch | mike fusc | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    TicTacToe game help

    Coderanch | 7 years ago | mike fusc
    java.lang.IllegalArgumentException: invalid row index: 3
  2. 0

    TicTacToe game help

    Coderanch | 7 years ago | Henry Wong
    java.lang.IllegalArgumentException: invalid row index: 3

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      invalid row index: 3

      at TicTacToeBoard.getSquare()
    2. Unknown
      TicTacToe.main
      1. TicTacToeBoard.getSquare(TicTacToeBoard.java:25)
      2. TicTacToe.diagonalComplete(TicTacToe.java:58)
      3. TicTacToe.gameWon(TicTacToe.java:84)
      4. TicTacToe.main(TicTacToe.java:116)
      4 frames