mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-27 21:23:30 -08:00
21 lines
487 B
Java
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);
|
|
}
|
|
} |