Skip to main content

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

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.2.tar.gz (2.1 MB 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.2-py3-none-any.whl (18.4 kB view details)

Uploaded Python 3

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

Hashes for pytablut-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f506ef2b42282730abdd7e84bf503931bca79905df2db20f4bfa0c6ecb036674
MD5 1c32df194e55af0c5ced01af31f756d0
BLAKE2b-256 fd7ab5fc6105a8717228214c5ff2ffa1aeb9d3705367fe3e6f6f85c2789efdf5

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytablut-0.1.2.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.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

Hashes for pytablut-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ae4d5beebb71b24530f1ecfba8d8761cfd556d756ca8aef478870a04726ff78c
MD5 ac7f03bb1a43770fd4c27feb4b849192
BLAKE2b-256 804d3cd123b9cfb839e91772826ded9a34092bd0cc8e1cfbad77324ee34a5847

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytablut-0.1.2-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