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
Built Distributions
File details
Details for the file gitcg-0.17.4-py3-none-win_amd64.whl
.
File metadata
- Download URL: gitcg-0.17.4-py3-none-win_amd64.whl
- Upload date:
- Size: 6.2 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
7a11534961d037b5f5900a19303f5ccf75b55c9f9cbf566c39eaa0a0f5ee71b9
|
|
MD5 |
f860112addb8213de86b5b729a0781cb
|
|
BLAKE2b-256 |
ce4550ff7a7c3430bbbfa4c5f7826c46fa54ebba9e92da9ea8a15199f8c8eb45
|
Provenance
The following attestation bundles were made for gitcg-0.17.4-py3-none-win_amd64.whl
:
Publisher:
main.yml
on genius-invokation/genius-invokation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gitcg-0.17.4-py3-none-win_amd64.whl
-
Subject digest:
7a11534961d037b5f5900a19303f5ccf75b55c9f9cbf566c39eaa0a0f5ee71b9
- Sigstore transparency entry: 453826056
- Sigstore integration time:
-
Permalink:
genius-invokation/genius-invokation@530aeef27596541b32227384b8388ee2519cbffa
-
Branch / Tag:
refs/tags/v0.17.4
- Owner: https://github.com/genius-invokation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
main.yml@530aeef27596541b32227384b8388ee2519cbffa
-
Trigger Event:
push
-
Statement type:
File details
Details for the file gitcg-0.17.4-py3-none-manylinux_2_34_x86_64.whl
.
File metadata
- Download URL: gitcg-0.17.4-py3-none-manylinux_2_34_x86_64.whl
- Upload date:
- Size: 10.8 MB
- Tags: Python 3, manylinux: glibc 2.34+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
b9e674acffea42b2733fbc649f8171e8cfb304d18a6b56393134cb30496021f3
|
|
MD5 |
df615eb6880b676d140166b882673a40
|
|
BLAKE2b-256 |
925ff808dc40efeb781822ed44dfc05bbedd5fa24ec04c207d394048ba0a4445
|
Provenance
The following attestation bundles were made for gitcg-0.17.4-py3-none-manylinux_2_34_x86_64.whl
:
Publisher:
main.yml
on genius-invokation/genius-invokation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gitcg-0.17.4-py3-none-manylinux_2_34_x86_64.whl
-
Subject digest:
b9e674acffea42b2733fbc649f8171e8cfb304d18a6b56393134cb30496021f3
- Sigstore transparency entry: 453826051
- Sigstore integration time:
-
Permalink:
genius-invokation/genius-invokation@530aeef27596541b32227384b8388ee2519cbffa
-
Branch / Tag:
refs/tags/v0.17.4
- Owner: https://github.com/genius-invokation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
main.yml@530aeef27596541b32227384b8388ee2519cbffa
-
Trigger Event:
push
-
Statement type:
File details
Details for the file gitcg-0.17.4-py3-none-macosx_15_0_arm64.whl
.
File metadata
- Download URL: gitcg-0.17.4-py3-none-macosx_15_0_arm64.whl
- Upload date:
- Size: 7.5 MB
- Tags: Python 3, macOS 15.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
6b134cb9dec7da1555e912bc14bfd29f38d5679eed7763e48b3e8a8fc8715ab7
|
|
MD5 |
6b830c0b2b442774cff9f87cd06f738b
|
|
BLAKE2b-256 |
2638868ca1c3a4e4f91bfe26773834d346bb031fa532d1891e15568a0f100307
|
Provenance
The following attestation bundles were made for gitcg-0.17.4-py3-none-macosx_15_0_arm64.whl
:
Publisher:
main.yml
on genius-invokation/genius-invokation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gitcg-0.17.4-py3-none-macosx_15_0_arm64.whl
-
Subject digest:
6b134cb9dec7da1555e912bc14bfd29f38d5679eed7763e48b3e8a8fc8715ab7
- Sigstore transparency entry: 453826053
- Sigstore integration time:
-
Permalink:
genius-invokation/genius-invokation@530aeef27596541b32227384b8388ee2519cbffa
-
Branch / Tag:
refs/tags/v0.17.4
- Owner: https://github.com/genius-invokation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
main.yml@530aeef27596541b32227384b8388ee2519cbffa
-
Trigger Event:
push
-
Statement type:
File details
Details for the file gitcg-0.17.4-py3-none-macosx_13_0_x86_64.whl
.
File metadata
- Download URL: gitcg-0.17.4-py3-none-macosx_13_0_x86_64.whl
- Upload date:
- Size: 8.1 MB
- Tags: Python 3, macOS 13.0+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1b254b95761d9ec44a0e018d792559413b74ed7d5b1638dfcb606ca90dd52c50
|
|
MD5 |
b9f5888c9577f90bce09a935de0bb98f
|
|
BLAKE2b-256 |
5b4fb86726bff44ed39989d7dc8ae1b925088968301eb83eab6666785b84eb84
|
Provenance
The following attestation bundles were made for gitcg-0.17.4-py3-none-macosx_13_0_x86_64.whl
:
Publisher:
main.yml
on genius-invokation/genius-invokation
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1
-
Predicate type:
https://docs.pypi.org/attestations/publish/v1
-
Subject name:
gitcg-0.17.4-py3-none-macosx_13_0_x86_64.whl
-
Subject digest:
1b254b95761d9ec44a0e018d792559413b74ed7d5b1638dfcb606ca90dd52c50
- Sigstore transparency entry: 453826057
- Sigstore integration time:
-
Permalink:
genius-invokation/genius-invokation@530aeef27596541b32227384b8388ee2519cbffa
-
Branch / Tag:
refs/tags/v0.17.4
- Owner: https://github.com/genius-invokation
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com
-
Runner Environment:
github-hosted
-
Publication workflow:
main.yml@530aeef27596541b32227384b8388ee2519cbffa
-
Trigger Event:
push
-
Statement type: