Crate hangman [−] [src]
Constants
MAX_NUMBER_OF_ATTEMPTS | |
MAX_WORD_LENGTH | |
MIN_NUMBER_OF_ATTEMPTS | |
MIN_WORD_LENGTH |
Functions
check_and_set_attempts | |
check_and_set_max_word_length | |
check_game_solved | |
check_if_continue |
Check if the user wants to continue the game, or not |
display_usage |
general validation |
display_word | |
init_word |
game logic |
load_words_file |
load the words file If the OS is UNIX-like, try loading the /usr/share/dicts/words file, otherwise load the resources/words.txt file |
update_word |
Update the word with all occurrences of the entered character |