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.1.tar.gz (15.6 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.1-py3-none-any.whl (15.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fasttttsandbox-0.0.1.tar.gz
  • Upload date:
  • Size: 15.6 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.1.tar.gz
Algorithm Hash digest
SHA256 3414485bb77ef77fb76900f196b30922fdce7845a289f405cf8ddc275afc0616
MD5 2c079cc1f22c1fef020c95b85168bc46
BLAKE2b-256 bca76a8b24b76f61bfa7fce24f36346960bf71e4a960ce0df8cef0ece6e190dd

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fasttttsandbox-0.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c4875e5a0a579856040d9329ee5b756cdf2f99e3491257014688498ad8ba5667
MD5 002c2b23f90d3da5f13a7b33f67a5a97
BLAKE2b-256 9a3540a1c7cc39dc00e3940d0bdc7682582d08bfe0c67995bb29ac0264aa81af

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