Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Andyccs/ntucs-repo
/ functions
Functions
19 in github.com/Andyccs/ntucs-repo
⨍
Functions
19
◇
Types & classes
0
↓ 2 callers
Function
CorrectOrWrong
Check if Input is inside word
CZ1003/hangman.py:159
↓ 2 callers
Function
ShowGraphic
graphic of hangman
CZ1003/hangman.py:39
↓ 2 callers
Function
UpdateVariable
if Input is correct, update CurrentStatus. If input is wrong, update chance return CurrentStatus,chance
CZ1003/hangman.py:166
↓ 1 callers
Function
AskForInput
()
CZ1003/hangman.py:115
↓ 1 callers
Function
CheckInput
check for player input. If it is 'hint' or a alphabet, return True
CZ1003/hangman.py:125
↓ 1 callers
Function
GetInput
Get player inputs and lower-case the input
CZ1003/hangman.py:119
↓ 1 callers
Function
GiveHint
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 callers
Function
Lose
check if player lose
CZ1003/hangman.py:190
↓ 1 callers
Function
MultipleSameInput
if Input is in alphabet_guess_already, return True
CZ1003/hangman.py:136
↓ 1 callers
Function
PlayAgain
ask if player wants to play again
CZ1003/hangman.py:241
↓ 1 callers
Function
ShowChance
show how many chances are left
CZ1003/hangman.py:111
↓ 1 callers
Function
ShowCurrentStatus
input a list of word in 'list', output a list of word in 'string
CZ1003/hangman.py:103
↓ 1 callers
Function
ShowGuessedWord
show all word in the list of alphabet_guess_already
CZ1003/hangman.py:107
↓ 1 callers
Function
UpdateGuessWord
update new Input to alphabet_guess_already
CZ1003/hangman.py:178
↓ 1 callers
Function
Win
check if player win
CZ1003/hangman.py:183
↓ 1 callers
Function
dictionary
define a dictionary with 4 scope and five words for each scope
CZ1003/hangman.py:17
↓ 1 callers
Function
game
whole game process
CZ1003/hangman.py:197
↓ 1 callers
Function
select_word
select a word randomly from the dictionary print the scope and return WordChosen
CZ1003/hangman.py:25
↓ 1 callers
Function
welcome
hangman welcome graphic
CZ1003/hangman.py:3