依頼内容
“A Python Wordle round: enter a five-letter guess, reject an invalid length or word not in the dictionary, evaluate a valid guess against the target, end on a match, otherwise repeat while attempts remain and end in game over when none remain.”
次はこちらAdd a hint after each wrong guess.Change the word length to six letters.
この図に含まれるもの
図の背後にある意思決定を読み解く。
01
Check if the guess has exactly 5 letters.
02
Check if the guess exists in the game's dictionary of valid words.
This flowchart can be used as a reference for implementing the input validation component in any word-guessing game similar to Wordle.