An interface for implementing python AI in DareFightingICE
Project description
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()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyftg-1.1.tar.gz
(12.5 kB
view details)
File details
Details for the file pyftg-1.1.tar.gz.
File metadata
- Download URL: pyftg-1.1.tar.gz
- Upload date:
- Size: 12.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5409a84ba295e88df7598e4133cbd1c7ecf60c3775f5e8e28af2de079f73642a
|
|
| MD5 |
49f8171d811f6302a70e7707749b5f58
|
|
| BLAKE2b-256 |
dcc9f92e35623da3ca571079a3cb57ac347e5cfe28b631de48311a94f8ca5502
|