Skip to content
Snippets Groups Projects
Commit 3b4e499d authored by JimmyTheCat's avatar JimmyTheCat
Browse files

Tile constructor call adjusted

parent 34f48a3a
No related branches found
No related tags found
No related merge requests found
......@@ -27,14 +27,14 @@ public class Board extends Thread {
* Creates the Tiles and Players and sets the player who starts the game.
*/
Board() {
for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile(this,0,0,0);
for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile(0,0,0);
for(int i = 0; i < players.length; i++) players[i] = new Player(i+1);
currentPlayer = 0;
marks = 0;
}
Board(Player[] players) {
for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile(this,0,0,0);
for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile(0,0,0);
this.players = players;
currentPlayer = 0;
marks = 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment