Files
basic-computer-games/01 Acey Ducey/java/src/AceyDuceyGame.java
2021-02-21 12:15:00 +10:30

21 lines
487 B
Java

/**
* This class is used to invoke the game.
*
*/
public class AceyDuceyGame {
public static void main(String[] args) {
boolean keepPlaying;
AceyDucey game = new AceyDucey();
// Keep playing game until infinity or the player loses
do {
game.play();
System.out.println();
System.out.println();
System.out.println();
keepPlaying = game.playAgain();
} while (keepPlaying);
}
}