Skip to main content

An implementation of tic tac toe where players each make 'n' moves per turn

Project description

FastTTTSandbox implements tic tac toe in pythin using bitwise logic for fast game speed. FastTTTSandbox also allows for the n_moves keyword to set the number of actions that each side, x or o, takes per turn. The intent of n_moves is to allow for 2v2 or 3v3 tic tac toe where agents on a team take their moves simultaneously and must coordinate together so as not to play the same move.

All of the code is in __init__.py where the environment itself is only 158 lines of code with an example running like a gymnasium env at the bottom.

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

fasttttsandbox-0.0.2.tar.gz (15.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fasttttsandbox-0.0.2-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

Details for the file fasttttsandbox-0.0.2.tar.gz.

File metadata

  • Download URL: fasttttsandbox-0.0.2.tar.gz
  • Upload date:
  • Size: 15.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for fasttttsandbox-0.0.2.tar.gz
Algorithm Hash digest
SHA256 8f98b00dd63519c9dd906753a9a2d06fc7a47947f8931176b3ed76e22f3234fc
MD5 b8edef99a1ba6bc0a7db9c670c7ff3a8
BLAKE2b-256 f677313d97b32b5fbed92aee5a3bebc638fd7ad21ef2abd5e54896e05309143f

See more details on using hashes here.

File details

Details for the file fasttttsandbox-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: fasttttsandbox-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 15.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.4

File hashes

Hashes for fasttttsandbox-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 9a17a8b835dd336e52c7c8399aabb6b55ee1791bab84e3bda3c0ee5da6a6b3b0
MD5 26a988dee47dc578af07e219db4c493b
BLAKE2b-256 0ac423624bac08fa837bae2ccb322c3e397928126a8f6b676f570b7a846c73e3

See more details on using hashes here.

Supported by

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