コード例 #1
0
ファイル: Game.java プロジェクト: s1701134/softwaresystemen
 /**
  * Starts the Tic Tac Toe game. <br>
  * Asks after each ended game if the user want to continue. Continues until the user does not want
  * to play anymore.
  */
 public void start() {
   boolean doorgaan = true;
   while (doorgaan) {
     reset();
     play();
     doorgaan = readBoolean("\n> Play another time? (y/n)?", "y", "n");
   }
 }