Written in Java utilizing a simple CLI (command line interface)
This Java app has command line interface for playing a hangman style game using the US President names as a word set.
- packages
- instantiated classes
- private and public methods
- getters and setters
- Array Lists
- enum
- wrapper classes
- stream
- lambda expression
- regex
- terminal scanner command line interface
- User is presented with a random presidential name to guess showing letters as underscores initially
- User can choose how many names to play between 1 and 44
- FYI - yes there have been 45 presidencies, but Grover Cleveland served in the 22nd and 24th presidency hence there have been 44 individuals
- User guess letter via keyboard - results revealed
- letter not in name
- letter in name - underscores replaced with letter
- letter already used - list of previously used letters shown
- letter in name and solved the word - message followed by next word
- repeat above until pool of presidential names exhausted.
- replay of the game will provide randomized order of names
- User presented with option to play again
-
Github project : https://github.com/mylescarey2019/Word-Guess-Java
-
- none
- Java IDE of your choice
- use project packages com.example.wordapi and com.example.wordgame
- run App for main method entry point
Myles Carey [email protected]
- 1.0 - Initial Release - Java version based of previous TypeScript/JavaScript version
- 1.1 -