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", "MctsAi65"], 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.0.2.tar.gz (11.4 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.0.2-py3-none-any.whl (17.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyftg-1.0.2.tar.gz
  • Upload date:
  • Size: 11.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pyftg-1.0.2.tar.gz
Algorithm Hash digest
SHA256 a75461a493e88d2af39ea1dcae1c35ab01cb50a920ac3d0dd641d7897ae2b2df
MD5 f9ea2c23fe9185ed71b6566ac2037a6d
BLAKE2b-256 ed45292e9251842c712e2d3498cb839434c3b65309205486d8e80bffe3a0b64e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyftg-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 17.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.8

File hashes

Hashes for pyftg-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 80de61eb7c80d75c4fec56a3874e9eedab97cc4a8a89b07112cb11ae7605a6a5
MD5 ec2c8def3ea253d58842aec992ab9558
BLAKE2b-256 2f967a1c961995112c794489993c46b8709be6d335ccce7019950a5631a59313

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