A CLI implementation of the classic Tic Tac Toe game
Project description
Colititato
This is a simple command-line interface (CLI) implementation of the popular Tic Tac Toe game in Python. It allows a player to play the game with a computer player by taking turns to mark the spaces on a 3x3 grid.
Installation
To install the game, you can use pip to download and install it from PyPI:
pip install colititato
Usage
After installation, you can start the game by running the following command in your terminal:
colititato
This will start a new game and prompt the first player to make a move. The game board will be displayed in the console as follows:
| 1 | 2 | 3 |
| 4 | 5 | 6 |
| 7 | 8 | 9 |
To make a move, enter the number corresponding to the cell you want to mark (1-9) and press Enter. The cell will be marked with either "X" or "O", depending on whose turn it is. The game will continue until one of the players wins, or the game ends in a tie.
Development
To develop Colinote, first clone the repository:
git clone https://github.com/tiakas/colititato.git`
cd colinote
Then, install the development dependencies:
pip install -r requirements.txt
To run the tests, use:
pytest
To build the package, use:
python setup.py sdist bdist_wheel
This will create a dist directory containing the source distribution (.tar.gz) and wheel distribution (.whl) of the package.
Check the package contents:
twine check dist/*
Upload the package to PyPI:
twine upload dist/*
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are always welcome! Here are some ways to contribute:
- Fork the repository and make changes on your local branch.
- Create a pull request with your changes.
- Work on open issues.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file colititato-0.1.1.tar.gz.
File metadata
- Download URL: colititato-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dd50a2a6c7918eeb3d6fe76ee2aeede095b5e95ce60b9b77d937b12ec232c170
|
|
| MD5 |
d15d5269acf2249f15206335d9a5b21c
|
|
| BLAKE2b-256 |
fd3e715f40a3c435e9f212c1b1c2730f9eb7e0f323e5490fa31f44668dec159b
|
File details
Details for the file colititato-0.1.1-py3-none-any.whl.
File metadata
- Download URL: colititato-0.1.1-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a6a5a0a8052b07576058bc124c3f92f9be2e937510e9a777e67953a3e4ce2692
|
|
| MD5 |
7c91b7658630cc7699f0691164565a73
|
|
| BLAKE2b-256 |
1d8848895e5a182aa7c7bedb72c0b8f2424dd3f6fc95a44e922e7de227d6d0d4
|