Files
basic-computer-games/01_Acey_Ducey/java/src/AceyDuceyGame.java
Martin Thoma e64fb6795c MAINT: Apply pre-commit
Remove byte-order-marker pre-commit check as there would be
many adjustments necessary
2022-03-05 09:29:23 +01:00

22 lines
488 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);
}
}