mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-26 12:51:29 -08:00
Removed spaces from top-level directory names.
Spaces tend to cause annoyances in a Unix-style shell environment. This change fixes that.
This commit is contained in:
21
01_Acey_Ducey/java/src/AceyDuceyGame.java
Normal file
21
01_Acey_Ducey/java/src/AceyDuceyGame.java
Normal file
@@ -0,0 +1,21 @@
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user