mastermind.players package

class mastermind.players.abstract_player.CodeCracker(player_logic: PlayerLogic)[source]

Bases: Player, ABC

lose_message() None[source]
abstract obtain_guess() tuple[source]
undo() None[source]
win_message() None[source]
class mastermind.players.abstract_player.CodeSetter(player_logic: PlayerLogic)[source]

Bases: Player, ABC

abstract get_feedback(guess: tuple) tuple[source]
abstract set_secret_code() None[source]
undo() None[source]
class mastermind.players.abstract_player.Player(player_logic: PlayerLogic)[source]

Bases: ABC

clear_undo() None[source]
redo() None[source]
abstract undo(item: tuple) None[source]
class mastermind.players.ai_player.AICodeCracker(player_logic: PlayerLogic)[source]

Bases: CodeCracker

obtain_guess() tuple[source]
class mastermind.players.ai_player.AICodeSetter(player_logic: PlayerLogic)[source]

Bases: CodeSetter

get_feedback(guess: tuple) tuple[source]
set_secret_code() None[source]
class mastermind.players.external_player.ExternalCodeSetter(player_logic: PlayerLogic)[source]

Bases: CodeSetter

get_feedback(guess: tuple) tuple | str[source]
set_secret_code() None[source]
class mastermind.players.human_player.HumanCodeCracker(player_logic: PlayerLogic)[source]

Bases: CodeCracker

obtain_guess() tuple | str[source]
class mastermind.players.human_player.HumanCodeSetter(player_logic: PlayerLogic)[source]

Bases: CodeSetter

get_feedback(guess: tuple) tuple[source]
set_secret_code() str | None[source]