Client-server Noughts & Crosses (Tic Tac Toe) terminal based, online game through websockets.
Project description
Noughts & Crosses (Tic Tac Toe)
Client-server Noughts & Crosses (Tic Tac Toe) terminal based, online game through websockets.
Requires
Python 3.10
Install
$ pip install onx
Play Game
$ onx
Command line option -g
or --grid-size
changes grid size.
Option -w
or --wining-length
changes winning sequence length.
Option -h
or --help
prints help.
$ onx -g14 -w3
Run Server and Client Locally
Set up env variables.
$ export LOCALHOST="0.0.0.0"
$ export PORT=8888
Run server.
$ onx -d
Run client.
$ onx
Run Tests
$ git clone git@github.com:vyalow/onx.git
$ cd onx
$ pip install -r requirements.txt -r requirements-dev.txt
$ pytest --cov
TODO
- Bump up Python version from 3.5 to 3.10
- Fix tests stability after bumping aiohttp from 1.3 to 3.8
- Set up code linting
- Set up mypy
- Better client
- Add to PyPI
- Heroku deployment
- Expand play board
- Fix aiohttp deprecations
- Migrate from aiohttp to starlette or gRPC or even Blockchain
- Add gameplay with a computer
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
onx-0.1.2.tar.gz
(21.6 kB
view hashes)
Built Distribution
onx-0.1.2-py3-none-any.whl
(22.4 kB
view hashes)