mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 04:41:52 -08:00
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);
|
|
}
|
|
}
|