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.4.tar.gz (15.9 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.4-py3-none-any.whl (16.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fasttttsandbox-0.0.4.tar.gz
  • Upload date:
  • Size: 15.9 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.4.tar.gz
Algorithm Hash digest
SHA256 6b580110f5ab55f1b2d5c1c32d876fe468d5a2ecc6111a3f8637c674a204f209
MD5 c676e52543e2b62934f7cbc9a79b0ed7
BLAKE2b-256 fc04c64a4bf5f90627f6699bcc821e46f2c1edf1406ad860a09eab7bb068b645

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fasttttsandbox-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 16.0 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b35421e67c87a3aaea1d9096bb5b4bd89f56b8aa711b29b63150acef44b60ab6
MD5 1b7a6ffc0cde0741ff868b0aa1401e18
BLAKE2b-256 0fc60796d6261ccb97a82b8fcaa5d902a46db27491df488846614dfc22d4c5b7

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