Tablut Game Implementation in Python
Project description
pytablut
Installation
python3 -m pip install pytablut
Usage
In a terminal, start the Python server:
pytablut run server
In a new terminal, start one player client:
pytablut run client -r white -t 60.0 --host localhost
In another terminal, start the second player client:
pytablut run client -r black -s random
Alternatively, you can use the Java server given in this repository:
java -jar Executables/Server.jar -g # Start server with GUI
The java server should be used if you are participating in FUNDAMENTALS OF ARTIFICIAL INTELLIGENCE AND KNOWLEDGE REPRESENTATION Course Project competitions.
Command Options
To see all available options:
pytablut run server --help # Server options
pytablut run client --help # Client options
Available strategies: human, random, minimax
Development
Clone the repository:
git clone https://github.com/Bardreamaster/pytablut.git
cd pytablut
Install development dependencies with uv:
uv sync
Run with uv: uv run pytablut run client or activate the virtual environment and run directly like normal user.
License
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 pytablut-0.1.2.tar.gz.
File metadata
- Download URL: pytablut-0.1.2.tar.gz
- Upload date:
- Size: 2.1 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f506ef2b42282730abdd7e84bf503931bca79905df2db20f4bfa0c6ecb036674
|
|
| MD5 |
1c32df194e55af0c5ced01af31f756d0
|
|
| BLAKE2b-256 |
fd7ab5fc6105a8717228214c5ff2ffa1aeb9d3705367fe3e6f6f85c2789efdf5
|
Provenance
The following attestation bundles were made for pytablut-0.1.2.tar.gz:
Publisher:
pypi.yml on Bardreamaster/pytablut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytablut-0.1.2.tar.gz -
Subject digest:
f506ef2b42282730abdd7e84bf503931bca79905df2db20f4bfa0c6ecb036674 - Sigstore transparency entry: 763611507
- Sigstore integration time:
-
Permalink:
Bardreamaster/pytablut@01b577ae76c1ab8b1bb3e756a11a04d37463afd4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Bardreamaster
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@01b577ae76c1ab8b1bb3e756a11a04d37463afd4 -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytablut-0.1.2-py3-none-any.whl.
File metadata
- Download URL: pytablut-0.1.2-py3-none-any.whl
- Upload date:
- Size: 18.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ae4d5beebb71b24530f1ecfba8d8761cfd556d756ca8aef478870a04726ff78c
|
|
| MD5 |
ac7f03bb1a43770fd4c27feb4b849192
|
|
| BLAKE2b-256 |
804d3cd123b9cfb839e91772826ded9a34092bd0cc8e1cfbad77324ee34a5847
|
Provenance
The following attestation bundles were made for pytablut-0.1.2-py3-none-any.whl:
Publisher:
pypi.yml on Bardreamaster/pytablut
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytablut-0.1.2-py3-none-any.whl -
Subject digest:
ae4d5beebb71b24530f1ecfba8d8761cfd556d756ca8aef478870a04726ff78c - Sigstore transparency entry: 763611509
- Sigstore integration time:
-
Permalink:
Bardreamaster/pytablut@01b577ae76c1ab8b1bb3e756a11a04d37463afd4 -
Branch / Tag:
refs/tags/v0.1.2 - Owner: https://github.com/Bardreamaster
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@01b577ae76c1ab8b1bb3e756a11a04d37463afd4 -
Trigger Event:
push
-
Statement type: