Metadata-Version: 2.4
Name: tickgym
Version: 1.0.0
Summary: Drive Trackmania 2020 physics from Python through TICK: gyms for training agents on exact, restorable simulation.
License-Expression: MIT
Project-URL: Documentation, https://tm.achepta.com/tickgym/
Project-URL: TICK, https://github.com/trackmania-input-control-kit/TickTasTool
Keywords: trackmania,tas,reinforcement-learning,gym,tick
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Microsoft :: Windows
Classifier: Operating System :: POSIX :: Linux
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: numpy>=1.26
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Dynamic: license-file

# TICKGYM

Drive Trackmania 2020 physics from Python through TICK

Open as many gyms as you want
and run them in parallel.

Documentation: <https://tm.achepta.com/tickgym/>

## Install

```
pip install tickgym
```

TICK 3.0 must be installed and have been run once with the game. Python 3.11+

## A first race

```python
from tickgym import Client, TelemetryGroup

# TICK on this machine opens the map as a session.
with Client().open_map(r"C:\Maps\Example.Map.Gbx") as session:
    # One connection is one gym.
    with session.connect(TelemetryGroup.RACE | TelemetryGroup.VEHICLE) as gym:
        telemetry = gym.reset(seed=1)
        telemetry = gym.step(200, accelerate=True)
        print(telemetry.vehicle.speed, telemetry.vehicle.position)
```

The [quickstart](https://tm.achepta.com/tickgym/quickstart.html) continues from here: a control loop, snapshots,
exact inputs, saving and replaying a race, etc.
