Skip to content

kkisiele/hangman

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mvn License

Hangman is a words guessing game for one player. The computer guesses a word and the user has to suggest letters one by one. Every time the word contains a letter, the computer opens it (all of them, if there are a few). Every time the word doesn't contain a letter, the computer gives a penalty point for the user. If there are five penalty points, the user looses. If there are no hidden letters anymore, the computer looses.

First, build it:

$ mvn clean package

Then, run:

$ java -classpath target/classes hangman.Main

This Java code is very procedural, imperative, and not elegant at all. Read about Elegant Objects and then try to refactor this code and improve. You're welcome to create new classes, new methods, anything. Just make sure it still builds. When ready, please submit a pull request.

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%