Skip to main content

Tablut Game Implementation in Python

Project description

pytablut

Installation

python3 -m pip install pytablut

Usage

In a terminal, start the Java Tablut server (assuming you have Java installed):

java -jar Executables/Server.jar -g # Start server with GUI

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

Using the Python Server

Alternatively, you can use the Python server included in this package. In a terminal, start the Python server:

pytablut run server

Then connect clients as shown above.

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

MIT License

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

pytablut-0.1.1.tar.gz (80.3 kB view details)

Uploaded Source

Built Distribution

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

pytablut-0.1.1-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

File details

Details for the file pytablut-0.1.1.tar.gz.

File metadata

  • Download URL: pytablut-0.1.1.tar.gz
  • Upload date:
  • Size: 80.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for pytablut-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bb44a5f0a9bb0d437a2eb566dbb60b6cfef827f6acd59659ac173df217cba3c6
MD5 f10ae88b47fc806687f89fc57801c0cc
BLAKE2b-256 c5368143ceff688e94922a73b71c54961301a79db510f24031c93412c28a9f89

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytablut-0.1.1.tar.gz:

Publisher: pypi.yml on Bardreamaster/pytablut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pytablut-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: pytablut-0.1.1-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

Hashes for pytablut-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 34aa8fd8d9a56b406dd87df2a2bd9c5f3d913e638f2230dc411d3a0aa72df614
MD5 aaa1e89448824e541e60b0d813f50ead
BLAKE2b-256 ca456c0a357789b7a2855621ef729d0cc73e2a36fe0052f9d55750e4a7b9f686

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytablut-0.1.1-py3-none-any.whl:

Publisher: pypi.yml on Bardreamaster/pytablut

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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