Skip to main content

Client-server Tic Tac Toe (Noughts & Crosses) terminal based, online game through websockets.

Project description

Tic Tac Toe (Noughts & Crosses)

RunTests

Client-server Tic Tac Toe (Noughts & Crosses) terminal based, online game through websockets.

Requires

Python 3.10

Install

$ pip install onx

Play Game

$ onx

TUI screenshot 1

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

TUI screenshot 1

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
  • Fix aiohttp deprecations
  • Better client
  • Add to PyPI
  • Heroku deployment
  • Migrate from aiohttp to starlette or migrate from websockets to gRPC
  • Expand play board
  • 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.0.tar.gz (18.7 kB view hashes)

Uploaded Source

Built Distribution

onx-0.1.0-py3-none-any.whl (19.2 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