Closed Mouse4TheTurtle closed 5 years ago
Need to figure out why this error is being thrown.
Exception in thread "main" java.lang.NullPointerException at Board.validMove(Board.java:69) at Board.movePiece(Board.java:81) at Game.main(Game.java:26)
Error is thrown when a pawn is moved.
It seems to be an error in the pawn's Movement array.
Problem pinpointed to firstMove variable, meant to allow pawns to move 2 spaces ahead on their first move.
Issue combined with Issue #4
Need to figure out why this error is being thrown.
Error is thrown when a pawn is moved.