Search:

Type: Posts; User: captain

Search: Search took 0.09 seconds.

  1. Re: Assigning Colors in a 2D array in a random order

    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.
  2. Re: Assigning Colors in a 2D array in a random order

    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...
  3. Assigning Colors in a 2D array in a random order

    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...
Results 1 to 3 of 3