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()