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

# 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", "MctsAi23i"], 1)
```

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