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

turnEnd java doc adjusted and Tile constructor call in Board adjusted

parent b92a91a3
No related branches found
No related tags found
No related merge requests found
......@@ -59,14 +59,17 @@ public class Board extends Thread {
* Creats the tiles and assigns the first turn.
*/
private void initBoard() {
for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile(0,0,0);
for(int i = 0; i < tiles.length; i++) tiles[i] = new Tile();
currentPlayer = firstPlayer;
marks = 0;
}
/**
* Ends the turn by increasing the mark counter and changing the player.
* Additionally it ends the game when certain conditions are met.
*
* @return current player won
*/
public boolean turnEnd() {
marks++;
......
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