absfuyu.game.tictactoe module

Game: Tic Tac Toe

Version: 5.1.0 Date updated: 10/03/2025 (dd/mm/yyyy)

class absfuyu.game.tictactoe.TicTacToe(game_size: int = 3, *, x: str = 'X', o: str = 'O', blank: str = ' ', position_split_symbol: str = ',', end_break_word: str = 'END', welcome_message: bool = True)[source]

Bases: BaseClass

Tic Tac Toe game

Added in version 3.3.3

play(game_mode: str = '1v0', *, bot_time: float = 0) None[source]

Play a game of Tic Tac Toe

Parameters:
  • game_mode (str) – Game mode

  • bot_time (float) – Time sleep between each bot move (Default: 0)

class absfuyu.game.tictactoe.GameMode[source]

Bases: object

ONE_V_ONE = '1v1'
ONE_V_BOT = '1v0'
BOT_V_BOT = '0v0'