GitXplorerGitXplorer
m

HangmanGame

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
537b126f7a6baafc7233721beffbce20b38faf79

Merge branch 'master' of https://github.com/mrfarhadi/HangmanGame

mmrfarhadi committed 9 years ago
Unverified
ea52df5083d3ed02140fd637cd53e2e1a55c54c4

add gitignore and clean gitignore leftover files

mmrfarhadi committed 9 years ago
Unverified
b8320fc5bac8016b5a68cf9c73e8d4f243a2b9c4

add gitignore and clean gitignore leftover files

committed 9 years ago
Unverified
561b99e12eb279adf5534d1e4031d767d3dea536

add gitignore and clean gitignore leftover files

mmrfarhadi committed 9 years ago
Unverified
bdf595b11b4ff40e97da2e5eb54ade9123c9e342

add gitignore and clean gitignore leftover files

committed 9 years ago
Unverified
83123f272f8c34733128aec4947aad429263b751

initial commit

mmrfarhadi committed 9 years ago

README

The README file for this repository.

Hangman Game

This application simulates hangman game. It can be run from command line. Once you run the program, it gives you the secret word that needs to be guessed. The reason the secret word is given, is to allow the user to test the program easily. The application has a "StartApp" class which runs the program.

It has an application.properties file which has all properties needed for this app as well as 50 words. The program randomly picks one word from this list as the secret word. “ConfigLoader” class loads the properties for the game.

“Player” class has all the attributes for a player such as guess word, number of bad guesses, pick a word method and etc.

“SecretWord” class is a container for the secret word to be guessed.

“GuessingWord” class is a child of “SecretWord” class and inherits its length. This class is a container for a word being guessed. For example, “farhadi” is the secretWord, but “fa__ad_” is a guessingWord.

HangmanSketch class had the ascii code for the hangman. It has 11 different shapes in asscii.

“Game” class plays the game and shows the hangmanSketch status to the user. It has play, getUserGuess, compare word and letter and etc functions.

The application has 9 unit tests to test the functionality of the Game methods.