Skip to main content

Genius Invokation TCG (Python binding)

Project description

Genius Invokation TCG (Python binding)

This Python binding of GI-TCG is based on the C Binding and Python ctypes FFI.

A very simple usage example:

from gitcg import Deck, Player, Game

# Set players initial deck
DECK0 = Deck(characters=[1411, 1510, 2103], cards=[214111, 311503, ...])
DECK1 = Deck(characters=[1609, 2203, 1608], cards=[312025, 321002, ...])

class MyPlayer(Player):
    # implements on_notify, on_action, etc.
    # See `gitcg.Player`'s documentation for detail.
    pass

# Initialize the game
game = Game(create_param=CreateParam(deck0=DECK0, deck1=DECK1))
game.set_player(0, MyPlayer())
game.set_player(1, MyPlayer())

# Start and step the game until end
game.start()
while game.is_running():
    game.step()

Here is a generated API documentation.

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gitcg-0.20.3-py3-none-win_amd64.whl (6.3 MB view details)

Uploaded Python 3Windows x86-64

gitcg-0.20.3-py3-none-manylinux_2_34_x86_64.whl (10.9 MB view details)

Uploaded Python 3manylinux: glibc 2.34+ x86-64

gitcg-0.20.3-py3-none-macosx_15_0_arm64.whl (7.6 MB view details)

Uploaded Python 3macOS 15.0+ ARM64

File details

Details for the file gitcg-0.20.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: gitcg-0.20.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 6.3 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for gitcg-0.20.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 1f738a83902985930a041a803cf7d77f7c97e7a7f5febc685c94dece9dbdd162
MD5 1d4fcfb21e52bd615fa549a4c4dc961c
BLAKE2b-256 5d036bd237a0c35fe25cb85dfdf0a78b452429cbbee470a7a618f82c0cd1af6e

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitcg-0.20.3-py3-none-win_amd64.whl:

Publisher: main.yml on piovium/genius-invokation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gitcg-0.20.3-py3-none-manylinux_2_34_x86_64.whl.

File metadata

File hashes

Hashes for gitcg-0.20.3-py3-none-manylinux_2_34_x86_64.whl
Algorithm Hash digest
SHA256 0d5cbc928462c58072b2218081dbae1fb9d7242c9de7db8a32f9bb8a232c5fd0
MD5 04c78ae2daf72b5e2394e134f59b7995
BLAKE2b-256 20128183156b011db5e69bef96b4be61ca9eab3e97036ea3212f310e7962b451

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitcg-0.20.3-py3-none-manylinux_2_34_x86_64.whl:

Publisher: main.yml on piovium/genius-invokation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file gitcg-0.20.3-py3-none-macosx_15_0_arm64.whl.

File metadata

File hashes

Hashes for gitcg-0.20.3-py3-none-macosx_15_0_arm64.whl
Algorithm Hash digest
SHA256 f668718d375788f0447d4a8b85e729c5f0d1e209731e6aad2ed03f86099cb99c
MD5 1e7e12e1ff2c57bc96a6d9f80166ac9d
BLAKE2b-256 4ef2bc0ca7e3c656a9a5b9eb131fe2c4ecc2b007986cccafbe97e709b54059f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for gitcg-0.20.3-py3-none-macosx_15_0_arm64.whl:

Publisher: main.yml on piovium/genius-invokation

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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