src.modules.backend.result_color
Enumeration of result colors for Wordle feedback.
Classes
|
Enumeration of possible letter result colors in Wordle. |
- class src.modules.backend.result_color.ResultColor(value)[source]
Enumeration of possible letter result colors in Wordle.
- GREEN = 'G'
- YELLOW = 'Y'
- BLACK = 'B'
- classmethod from_char(char)[source]
Convert a character representation to the corresponding ResultColor.
- Return type:
- classmethod is_valid_result_string(result)[source]
Check if a string contains only valid result characters.
- Return type:
- classmethod is_winning_result(result)[source]
Check if a result string represents a winning game (all green).
- Return type:
- classmethod result_to_emoji(result)[source]
Convert a result string to emoji representation for sharing.
- Return type:
- classmethod parse_result(result_str)[source]
Parse a string of result characters into a list of ResultColor objects.
- Return type: