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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6b580110f5ab55f1b2d5c1c32d876fe468d5a2ecc6111a3f8637c674a204f209
|
|
| MD5 |
c676e52543e2b62934f7cbc9a79b0ed7
|
|
| BLAKE2b-256 |
fc04c64a4bf5f90627f6699bcc821e46f2c1edf1406ad860a09eab7bb068b645
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b35421e67c87a3aaea1d9096bb5b4bd89f56b8aa711b29b63150acef44b60ab6
|
|
| MD5 |
1b7a6ffc0cde0741ff868b0aa1401e18
|
|
| BLAKE2b-256 |
0fc60796d6261ccb97a82b8fcaa5d902a46db27491df488846614dfc22d4c5b7
|