Skip to main content

Creatively build Tic-Tac-Toe matches and store their data in a database of all users.

Project description

tictactoetools

tictactoetools is a Python package that provides functionality for building games of Tic-Tac-Toe with customizable features and storing the data of matches in a database.

Installation

To install the tictactoetools package, you can use the following command:

pip install tictactoetools

Usage

The tictactoetools module within the package comes with a builtin play() method as an example for playing tic-tac-toe using the given features.

The tictactoetools module also has functions for creating new users in the tictactoe.db database, logging matches in the database, starting new matches, and even prompting values from the user for playing Tic-Tac-Toe.

Board Class

The Board class represents the Tic-Tac-Toe game board. It provides methods for displaying the board, marking cells with any symbol, checking for a winner, and more.

Match Class

The Match class is a data class responsible for storing information about the players, start and end times of a match, the board configuration, and the winner.

Contributing

Contributions to the tictactoetools package are welcome! If you encounter any issues or have suggestions for improvements, please create an issue on the GitHub repository.

License

This package is licensed under the MIT License. See the LICENSE file for more information.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tictactoetools-1.0.5.tar.gz (6.8 kB view hashes)

Uploaded Source

Built Distribution

tictactoetools-1.0.5-py3-none-any.whl (6.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page