Cli
Wordle_bot Index / src
/ Cli / Cli
Auto-generated documentation for src.cli.cli module.
Cli
Command-line interface for Wordle bots.
This class manages user interaction for playing Wordle with different bot behaviors. It handles bot selection, game flow, user guesses, and result input.
Signature
class Cli:
def __init__(self): ...
Cli().accept_guess
Accept a guess from the user, validate, and update bot state.
Signature
def accept_guess(self): ...
Cli().accept_result
Prompt user for result of guess and update bot state.
Signature
def accept_result(self): ...
Cli().game_in_progress
Determine whether a game is in progress.
Returns
bool False if the game is over, True otherwise
Signature
def game_in_progress(self) -> bool: ...
Cli().get_valid_word
Accept a word from the user, testing if it is valid before returning.
Signature
def get_valid_word(self) -> str: ...
Cli().init_bot
Prompt user for bot to use and set class instance to that selection.
Signature
def init_bot(self) -> None: ...
Cli().init_session
Initialize a new game session.
Signature
def init_session(self) -> None: ...
Cli().play
Play a game with the user, repeatedly prompting for new games or new bots.
Signature
def play(self) -> None: ...
Cli().play_automatically
Play a game a automatically with the user, prompting for a secret word and running the game.
Signature
def play_automatically(self) -> None: ...
Cli().play_interactively
Play a game interactively with the user, prompting for guesses and results.
Signature
def play_interactively(self) -> None: ...
Cli().provide_guess
Provide the bot's next guess to the user.
Signature
def provide_guess(self): ...