MCPcopy Create free account

hub / github.com/Andyccs/ntucs-repo / functions

Functions19 in github.com/Andyccs/ntucs-repo

↓ 2 callersFunctionCorrectOrWrong
Check if Input is inside word
CZ1003/hangman.py:159
↓ 2 callersFunctionShowGraphic
graphic of hangman
CZ1003/hangman.py:39
↓ 2 callersFunctionUpdateVariable
if Input is correct, update CurrentStatus. If input is wrong, update chance return CurrentStatus,chance
CZ1003/hangman.py:166
↓ 1 callersFunctionAskForInput
()
CZ1003/hangman.py:115
↓ 1 callersFunctionCheckInput
check for player input. If it is 'hint' or a alphabet, return True
CZ1003/hangman.py:125
↓ 1 callersFunctionGetInput
Get player inputs and lower-case the input
CZ1003/hangman.py:119
↓ 1 callersFunctionGiveHint
if player ask for a hint select an alphabet that is correct and has not been guessed by player print out the hint
CZ1003/hangman.py:143
↓ 1 callersFunctionLose
check if player lose
CZ1003/hangman.py:190
↓ 1 callersFunctionMultipleSameInput
if Input is in alphabet_guess_already, return True
CZ1003/hangman.py:136
↓ 1 callersFunctionPlayAgain
ask if player wants to play again
CZ1003/hangman.py:241
↓ 1 callersFunctionShowChance
show how many chances are left
CZ1003/hangman.py:111
↓ 1 callersFunctionShowCurrentStatus
input a list of word in 'list', output a list of word in 'string
CZ1003/hangman.py:103
↓ 1 callersFunctionShowGuessedWord
show all word in the list of alphabet_guess_already
CZ1003/hangman.py:107
↓ 1 callersFunctionUpdateGuessWord
update new Input to alphabet_guess_already
CZ1003/hangman.py:178
↓ 1 callersFunctionWin
check if player win
CZ1003/hangman.py:183
↓ 1 callersFunctiondictionary
define a dictionary with 4 scope and five words for each scope
CZ1003/hangman.py:17
↓ 1 callersFunctiongame
whole game process
CZ1003/hangman.py:197
↓ 1 callersFunctionselect_word
select a word randomly from the dictionary print the scope and return WordChosen
CZ1003/hangman.py:25
↓ 1 callersFunctionwelcome
hangman welcome graphic
CZ1003/hangman.py:3