mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-07-08 21:37:13 -07:00
e64fb6795c
Remove byte-order-marker pre-commit check as there would be many adjustments necessary
22 lines
488 B
Java
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);
|
|
}
|
|
}
|