Disassembly of Pokémon TCG 2
Go to file
Test User 79e1ae2f6a Decompile Pokedex, Pokemon Recall, Imposter Oak's Revenge, Digger
Finished the last whole-card AI functions straight from the disassembly
(make compare proves byte identity); every AITrainerCardLogic row now
resolves to named functions.

- AIPlay/AIDecide_PokemonRecall ($7a90/$7aa5): decks $12 Overflow and $18
  Psychokinesis rescue a discarded evolution whose pre-evo is in play/hand.
- AIPlay/AIDecide_ImposterOaksRevenge ($7ec3/$7ed4): decks $48 Eevee
  Showdown and $6b Ronald's Power play it to disrupt a 5+ card opponent
  hand.
- AIPlay/AIDecide_Digger ($7f30/$7f3c): always plays when able.
- AIPlay/AIDecide_Pokedex ($5e94/$5ebd): occasional top-5 reorder
  (Pokemon, then Trainers, then Energy) + two type-specific energy helpers
  and GetCardTypeFromDeckIndex that shared the gap.

(Disassembler had labeled card $150 as the boot symbol Start since both are
$0150; it is really SPEAROW_LV13 -- caught by make compare.)

Bank 8: 95.71% -> 99.29%. make compare OK.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-04 00:16:48 -04:00
.claude/skills/poketcg2-ai Decompile Pokedex, Pokemon Recall, Imposter Oak's Revenge, Digger 2026-06-04 00:16:48 -04:00
src Decompile Pokedex, Pokemon Recall, Imposter Oak's Revenge, Digger 2026-06-04 00:16:48 -04:00
tools Refactor Game Center Lobby and Entrance scripts 2026-02-16 23:13:48 +09:00
.gitattributes Add .gitattributes 2022-05-14 17:42:59 -05:00
.gitignore Update Makefile 2021-10-15 12:43:42 -05:00
.rgbds-version Use features of RGBDS 1.0.0 (#47) 2025-11-12 21:52:50 -06:00
CONTRIBUTING.md Fix some typos 2025-12-06 15:09:54 -06:00
Makefile Use features of RGBDS 1.0.0 (#47) 2025-11-12 21:52:50 -06:00
README.md Update README formatting 2026-03-29 08:49:21 -05:00
rom.sha1 Update Makefile 2021-10-15 12:43:42 -05:00

Pokémon TCG 2

This is a disassembly of Pokémon TCG 2.

It uses the following ROM as a base:

  • Pokémon Card GB2 - GR Dan Sanjou! (J) [C][!].gbc sha1: a7e12bcc5f514e3aad8de570fd511aab0a308822

To assemble, first install RGBDS and put it in your path.
Then copy the above ROM to this directory as "baserom.gbc".
Then run make in your shell.

This will output a file named "poketcg2.gbc".

See also

You can find us on Discord (pret, #poketcg).

For other pret projects, see pret.github.io.