Metadata-Version: 2.1
Name: pyftg
Version: 1.0.2
Summary: An interface for implementing python AI in DareFightingICE
Home-page: https://github.com/Staciiaz/pyftg
Author: Staciiaz
Requires-Python: >=3.8
Description-Content-Type: text/markdown
Requires-Dist: grpcio

# pyftg

An interface for implementing python AI in DareFightingICE

First, install `pyftg` with pip.
```
pip install pyftg
```

Initiate `Gateway` for connecting to DareFightingICE platform.
```
from pyftg.gateway import Gateway
gateway = Gateway(port=50051)
```

Construct an agent and register it to gateway and then run the game by using following code.
```
agent = KickAI()
gateway.register_ai("KickAI", agent)
gateway.run_game(["ZEN", "ZEN"], ["KickAI", "MctsAi65"], 1)
```

After all the process are done, please also close the gateway.
```
gateway.close()
```
