Well my thought process for that piece of code was that it would set the i-th tile in the array to yellow. I'm not sure where I would assign a value to it initially though.
Type: Posts; User: captain
Well my thought process for that piece of code was that it would set the i-th tile in the array to yellow. I'm not sure where I would assign a value to it initially though.
Exception in thread "main" java.lang.NullPointerException
at Tile.setColor(Tile.java:16)
at GameBoard.buildTilePanel(GameBoard.java:55)
at GameBoard.<init>(GameBoard.java:39)
at...
Alright so basically what I'm trying to do is create a 16x16 square board of tiles (256 total) and when I run the program I need it to set up the tiles randomly into the following colors
39...