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.1.tar.gz (15.5 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.1-py3-none-any.whl (25.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyftg-2.0.1.tar.gz
  • Upload date:
  • Size: 15.5 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.1.tar.gz
Algorithm Hash digest
SHA256 65297ab55e0e08ded7c567cf0a14edb975288be5f1b17ea85f1a0bc35c31f697
MD5 08471d0de126dc8d76b480580ec233c4
BLAKE2b-256 f650735359589acb29a2cd932ce02dfcec545c7c169c3043dddc075d9fe7af12

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyftg-2.0.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 379c25c47a3ea31c87e002724f5cb19c19cdcef2f590759d3caa9da594047aef
MD5 3f3084d1be450509c0c07ed6141b8af7
BLAKE2b-256 52d8f7bc82d75fbc757e0f1c3d7f14eeb818495c6f4bb498de2d7e1e6cdddd49

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