Genius Invokation TCG Simulator
This is a simulator for Genius Invokation TCG, which is a built-in game of Genshin Impact.
Please note that this simulator is designed for (RL) research, I don't have any copyrights of the game. Game data is borrowed from this URL, this Wiki and this Chinese Wiki.
中文用户请参考这个文档
Progress
[Characters] 20 / 27
[Actions] 112 / 119
Most of the project has been completed and now we only have 7 characters not implemented (with their talent cards). I would like to take a break and leave it for test.
Dependence
pip install numpy tqdm
Demo
Edit p1.json
and p2.json
to change the card deck.
python game.py
TODO
- UI solution
- Deck check, not all cards can be included in a deck
- Debug - I really need some help to test this code. Please report any bugs you found via issue, and include as many as logs if possible. Thank you so much for your contribution!
Update log
12/25/22:
- Add new characters
- All reactions are done
- Fix summon bug - not activated at the end of a round
12/24/22:
- Add Kamisato Ayaka
- Buff system now can recognize 'refresh', 'stay' and 'unique' tags
12/23/22:
- Reorganize a lot of code, add (almost) all cards except talent cards
- Add more Cryo characters
12/22/22:
- Finished most of the event cards and all support cards
- Add Fischl
12/21/22:
- Add all artifact cards, now Artifact sys is beta
- Add save function, now we can export all the states
- Start to build support cards
12/20/22:
- Add some Elemental Resonance cards and some event cards
- Reorganize the game loop structure
- Init equipment system
- Add two talent cards and all weapon cards
- Add shield system
12/19/22:
- Finish basic skill pipeline
- Better character switch pipeline when one character is dead
- Buff from foods is done
- Add swap card phase at the beginning of the game
- Summons is beta now
- Add Anemo reactions
12/18/22:
- Build basic concepts including characters, actions, dice, deck and game framework.
- Finish the game pipeline and add the first action card "Sweet Madame"
- Init buff system and add all food cards