Skip to content

Reference

This part of the project documentation focuses on an information-oriented approach. Use it as a reference for the technical implementation of the Tic Tac Toe project code.

Backend subpackages

Game subpackage

Handle and render your game with this engine.

Modules exported by this package:

  • engine: Provide the class that handles the game.
  • players: Provide the classes to instantiate players, human or computer.
  • renderers: Provide classes for visual and state rendering.

This subpackage has the following modules:

  1. Engine
  2. Players
  3. Renderers

Logic subpackage

Handle model domain and business logic

Modules exported by this package:

  • exceptions: Provide exceptions for that handles the game.
  • minimax: Provide methods to implement basic AI to computer player
  • validator: Provide methods to validate game states and grid.
  • models: Provide classes for domain models.

This subpackage has the following modules:

  1. Exceptions
  2. Minimax
  3. Models
  4. Validators

Frontend

Console subpackage

Package that handles the frontend console.

Modules exported by this package:

  • args: Provide exceptions for that handles the game.
  • CLI: Provide methods to implement basic AI to computer player
  • players: Provide methods to validate game states and grid.
  • renderes: Provide classes for domain models.

This subpackage has the following modules:

  1. Args
  2. CLI
  3. Players
  4. Renderer