Skip to main content

An interface for implementing python AI in DareFightingICE

Project description

pyftg

An interface for implementing python AI in DareFightingICE

Note: Version 2.0 is the latest version compatible with the legacy FightingICE. Future versions will only support DareFightingICE-Unity.

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyftg-2.0.tar.gz (15.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyftg-2.0-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

Details for the file pyftg-2.0.tar.gz.

File metadata

  • Download URL: pyftg-2.0.tar.gz
  • Upload date:
  • Size: 15.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pyftg-2.0.tar.gz
Algorithm Hash digest
SHA256 3b5d4bb6a1ec963304e5ee9ae892f71f3ed27300be436006976091267da65eef
MD5 d69e8a12befc7941766bbab3c895fad1
BLAKE2b-256 0322310475c41c5933d5939172145ab50cc09486ea1502f93b126e5d8a46ce21

See more details on using hashes here.

File details

Details for the file pyftg-2.0-py3-none-any.whl.

File metadata

  • Download URL: pyftg-2.0-py3-none-any.whl
  • Upload date:
  • Size: 25.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.5

File hashes

Hashes for pyftg-2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 10439570de4c67d1492780f1fb9ef50a023157afbf1c954132bb86825c24da4b
MD5 81999146b00444924136608f26aeeb39
BLAKE2b-256 7a3f4021243148745921888c7013d5702537973bc1d4a080d206e4bd5a46612a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page