[font="Arial,"][size="4"]I created an array for the spaces of the tic tac toe (char)board, initialized the array indices to '-', have the player pick a space from 1-9, if its occupied return a false boolean and choose again, when it returns true I change the value of the space in the array.[/font]
[size=2]Can someone please take a look at my code uploaded at Google Code: http://code.google.com/p/java-console-tictactoe/source/browse/#svn%2Ftrunk%2Ftictactoe%2Fsrc[size=2]
[font="Arial,"][size="4"]I get the Error:[/font]
[font="Arial,"][size="4"] Exception in thread "main" java.lang.NullPointerException[/font]
[font="Arial,"][size="4"] at Game.setSpace(Game.java:47)[/font]
[font="Arial,"][size="4"] at Player.turn(Player.java:19)[/font]
[font="Arial,"][size="4"] at Game.run(Game.java:32)[/font]
[font="Arial,"][size="4"] at main.main(main.java:6)[/font]