Skip to main content

gameaikit

Game AI techniques in plain Python, the standard library and nothing else: search, adversarial search, planning from PDDL, fuzzy control, steering, utility choice, perception and belief, an opponent model, a validator for a language model's replies, and the gradient descent that trains the models the Godot half reads.

Each technique is the tier-1 half of a Godot addon of the same kit, held to the same answers by shared test vectors. It runs, and is tested, without an engine.

from gameaikit import techniques

for name, found in techniques.available().items():
    print(f"{name:26} {found.about}")
from gameaikit.utility import aim

head = aim.Zone("head", 2.0, (0.0, 1.65), [(-0.12, 1.5, 0.12, 1.8)], 1.0)
torso = aim.Zone("torso", 1.0, (0.0, 1.175), [(-0.2, 0.85, 0.2, 1.5)], 1.0)
print(aim.choose([head, torso], 0.5).aimed)   # 1: far away, the torso

Your own technique

Declare it in your package's pyproject.toml and techniques.available() lists it beside the kit's:

[project.entry-points."gameaikit.techniques"]
my-search = "my_package.search:MySearch"

A name the kit already uses is refused rather than shadowed.

Licence

Apache-2.0. LICENSE and NOTICE travel with the wheel, in its .dist-info/licenses/.

Metadata

Release files for gameaikit 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for gameaikit 0.1.0
File Interpreter ABI Platform Actions
gameaikit-0.1.0-py3-none-any.whl Python 3 none any Details for gameaikit-0.1.0-py3-none-any.whl

Release files / gameaikit-0.1.0-py3-none-any.whl

Download URL gameaikit-0.1.0-py3-none-any.whl
Size 102.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a251962e0363ed1df74eba5e1da3ffa4b2ec5c66ff48463c2f6de9b467d448b6
BLAKE2b-256 checksum
How to use checksums
136d6663f3a3bb231a81c67261b6e96b051c42deafd9b72dda5ec42dfbbbe2b0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for gameaikit 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page