Commit a54097a5 authored by Haj Rezvan's avatar Haj Rezvan

Add sleep method and check end of game in other class.

parent c64ab9ff
......@@ -19,10 +19,14 @@ public class GamePlay {
Player player2 = new Player(0);
Board.refresh();
Thread.sleep(1000);
//check end of the game
do {
System.out.println("Welcome players!!");
Thread.sleep(1000);
System.out.println("Player");
}while (Board.checkEndOfGame());
}while (GameController.checkEndOfGame());
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment