Skip to main content

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


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.3.tar.gz (12.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-1.3-py3-none-any.whl (19.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyftg-1.3.tar.gz
Algorithm Hash digest
SHA256 d26765075b51c2d969684d0fc5fbbac9568e6c291a95c1d8b218bbff952c049a
MD5 00d53e69847f5a6b673d96d00125e3ff
BLAKE2b-256 0409372fb161424933735335d81aa85701ffd0e6227aae58522a499b80012456

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyftg-1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 877e37d77ec2fb83ee4e76c7578a3e83762d22f527b0739a46b64f3410db89d8
MD5 4a78f141ce063dde0dcb2acf03ad0229
BLAKE2b-256 926ecc8b4d301e53ee1fcc3d74a4f251e1b29b06bd7127e0cfc7311af06e65bb

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