Inspiration
Classic text adventures turned simple words and choices into entire worlds, leaving much of the experience to the player's imagination. But those adventures were ultimately limited to predefined stories and outcomes. We wondered: what if generative AI could bring that experience back, without those boundaries? That idea became Re:Cardventure. Your choices shape the story, evolve your AI creature, and ultimately transform your adventure into a one-of-a-kind trading card. Text Adventure × Generative AI × Trading Card... Re:Cardventure resurrects the imagination of classic text adventures as a new experience where every adventure creates a different story, creature, and card.
What it does
Re:Cardventure turns your adventure into a one-of-a-kind trading card.
Inspired by classic text adventures, the game uses generative AI to create a personalized journey where every decision matters.
- Adventure: Explore a text-based world where your choices influence the story and AI-generated illustrations bring your actions to life.
- Evolve: Watch your AI creature grow and change based on the decisions you make throughout your journey.
- Create: Transform your adventure into a unique trading card featuring AI-generated artwork, attributes, stats, and abilities.
- Battle: Use your card in turn-based battles featuring skills, elemental advantages, and strategic combat. Your choices become your creature. Your creature becomes your card. Your card becomes your next adventure.
How we built it
Kiro was at the center of our development process for Re:Cardventure. We first provided Kiro with our basic and detailed design documents in docs/ to build the initial MVP. We then continued developing and refining the game primarily with Kiro, focusing on four key practices.
Specs: Turning Ideas into Structured Development
We used Kiro Specs (.kiro/specs/) to organize requirements, designs, and implementation tasks for features such as english-localization, battle-balance-and-elements, adventure-illustration-and-partner-panel, image-generation-stable-core, and party-select-opponent-preview. Kiro helped transform ideas into requirements, designs, and tasks, with human review at each stage before implementation. For English localization, Kiro completed over 50 implementation tasks. For battle balancing, the Specs process helped identify design questions before implementation. We also documented existing features as Specs to preserve project context for future development.
Steering: Maintaining Consistent Project Context
We used product.md, tech.md, and structure.md to define the game's rules, development conventions, project structure, and Amazon Bedrock integration.
- Steering also captured key principles: Keep the game playable even when AI generation fails. Use English for all player-facing text. Preserve card sizes while adapting layouts for mobile screens. This allowed Kiro to maintain consistency across development sessions without repeatedly explaining the same requirements.
Agent Hooks: Automating Quality Checks
We implemented three Agent Hooks to automate essential checks:
- Run automated tests after agent work completes.
- Run the production build after agent work completes.
- Check .gitignore when saved to ensure the .kiro directory is not excluded.
- These hooks helped detect issues early and maintain code quality throughout iterative development.
Property-Based Testing: Verifying Game Behavior
We used fast-check to validate important game invariants, including display names, save data, AI output validation, and elemental matchup rules. When rebuilding the battle engine, we preserved the previous implementation as a reference. Using identical random values and action sequences, we verified behavioral equivalence between the old and new engines across 200 randomly generated test cases.
Through these practices, Kiro became more than a code-generation tool. It supported the entire development process, from translating ideas into specifications to implementing features, maintaining consistency, and validating changes as Re:Cardventure evolved.
Challenges we ran into
Making battles feel fair and understandable.
When the CPU acted first, its opening move was processed before the battle screen appeared, making it look as if the player had taken damage for no reason. We added an encounter message and a Start Battle step, then redesigned combat into a round-based flow where both sides act once per round. We used equivalence tests against the previous battle engine to verify that core rules such as turn order and damage calculations remained consistent.
Balancing skills and combat mechanics.
Our simulations showed that one skill was overwhelmingly effective, with Chapter 1 win rates ranging from 100% to 55% depending on the selected skill. We changed buff duration to count the owner's actions rather than global turns and introduced elemental relationships: Water → Fire → Wind → Earth → Water, with Light and Dark effective against each other. We validated the new balance using seeded simulations running the same reducer used by the actual game.
Keeping AI-generated illustrations consistent with the adventure.
Some generated illustrations did not accurately reflect the current scene. We restructured the image-generation prompt so that the scene description appeared first, giving the model clearer context about what should be depicted.
Catching errors beyond automated tests.
During English localization, a syntax error occurred in a file that was not loaded by the test suite, so all tests passed while the production build failed. We added Kiro Agent Hooks to run both npm test and npm run build automatically after agent work.
Preventing Japanese text from returning after localization.
Even after completing English localization, later changes could accidentally reintroduce Japanese text. We added an automated repository check that scans tracked text files and fails when unexpected Japanese characters are detected.
Supporting small mobile screens without sacrificing the card experience.
The evolution and town screens overflowed at 360px width. We kept the card itself visually prominent while switching surrounding layouts to vertical, single-column arrangements on narrow screens. We verified the result across viewport widths using headless Chrome.
Accomplishments that we're proud of
Bringing Classic Text Adventures Back to Life
We successfully reimagined classic text adventures by combining generative AI, creature evolution, and trading card battles into a playable game.
Turning Adventures into Unique Trading Cards
We created a system where players' choices influence their creatures' growth, abilities, and appearance, transforming each adventure into a one-of-a-kind trading card.
Bringing Adventures to Life with Generative AI
We integrated AI-generated storytelling, scene illustrations, and card artwork to create a personalized adventure experience where player decisions shape the journey.
Building a Complete Game with Kiro
Starting from design documents, we used Kiro to develop the initial MVP and continuously improve the game through iterative development, Specs, and Steering.
Improving Game Quality Through Automated Testing
We implemented Agent Hooks, property-based testing, and battle-engine equivalence tests to maintain quality while making significant changes. We also introduced reproducible win-rate simulations to improve game balance.
Making the Game Accessible to More Players
We implemented English localization and responsive layouts, making Re:Cardventure more accessible to international players across desktop and mobile devices.
Our greatest accomplishment was turning a simple idea, "Your Adventure, Your Card," into a playable experience where generative AI connects storytelling, creature evolution, and card battles, all developed through an AI-driven workflow with Kiro.
What we learned
- Specs helped us catch design gaps before implementation. By reviewing requirements and design first, we identified issues early. For example, a speed buff would have had no meaningful effect if turn order remained fixed. Spec-driven development helped us catch this before implementation.
- Steering was more reliable than repeatedly explaining project context in prompts. Defining the project's product rules, technology choices, and implementation conventions once in Steering gave Kiro consistent context across development sessions.
- The more we delegated to AI, the more important automated verification became. Combining Agent Hooks, property-based testing, and equivalence tests against the previous battle engine allowed us to make significant changes while continuously checking that existing behavior remained intact.
- Game balance needs data, not intuition alone. Win-rate simulations revealed imbalances between skills that were difficult to recognize through manual playtesting. We learned that simulations should have been introduced much earlier in development.
- Generative AI model availability is an architectural constraint. Model availability varies by AWS Region and model lifecycle status, including Legacy models. We learned these constraints should be validated early when designing AI-powered features.
What's next for Re:Cardventure - Your Adventure, Your Card -
We envision Re:Cardventure evolving into a world where every player's adventure creates new possibilities.
Our future plans include:
- Online PvP: Battle against other players using unique AI-generated cards.
- Card Collection and Trading: Collect, share, and exchange cards created through adventures.
- Creature Evolution: Continue developing creatures through new adventures and battles.
- Expanded Storytelling: Explore new worlds with more diverse stories and choices.
- Community: Connect players through their one-of-a-kind cards. We want every card to be more than a collectible. We want it to be a living record of the player's adventures.
Built With
- amazon-bedrock
- amazon-cloudfront
- amazon-ecr
- amazon-ecs
- amazon-eventbridge-scheduler
- anthropic-claude-haiku
- aws-amplify
- aws-cloudformation
- aws-fargate
- aws-lambda
- claude
- docker
- elastic-load-balancing
- express.js
- github-actions
- iam-oidc
- javascript
- node.js
- react
- stability-ai
- stable-image-core
- vite
- vitest


