A card game engine for battlers: hands, decks and the order effects resolve
A card game is a rules engine wearing artwork. Behind each duel, the engine shuffles a deck, deals a hand, tracks resources, places creatures on a board, and resolves effects in a strict order so that "deal two damage, then draw a card" always happens the same way. The more cards a set holds, the more ways they can interact, and the engine has to handle every combination without contradicting itself.
Tyrbo's engine builds single-player card battlers: you play cards from a hand to summon creatures and cast effects against computer opponents with their own decks. Table games such as poker are not what this page covers.
Make your gameSign in to get the plan and its concept art. Both are free.
Card battler and autobattler · Gilded fantasy
Card battler and autobattler · Painted storybook
Card battler and autobattler · Anime bright
Card battler and autobattler · Bright and bold
Card battler and autobattler · Ink sketch
Card battler and autobattler · Spooky cartoon
Card battler and autobattler · Clean neon
Card battler and autobattler · 16-bit pixel
What a card engine keeps track of
A card battler's state is surprisingly large. The engine has to track:
- Zones. The draw pile, the hand, the discard pile, the battlefield, and sometimes an exile pile for cards removed for good.
- Resources. Mana that grows each turn, a fixed energy pool, or costs paid in health.
- The turn structure. Draw, play, attack, end, and anything that triggers at each step.
- Effects and their order. When several things trigger at once, which resolves first, and what a card that says "when this dies" does if it dies mid-combat.
- Randomness. Shuffles and random targets that feel fair over many games.
Errors here feel like cheating to players, so a card engine has to be exact before it is anything else.
Tyrbo’s tested card pieces
Tyrbo builds the hand, the card faces and card play on its tested cards interface, with the HUD brick showing health and resources. Draw, discard and the hand cycle work before any theme goes on top. When creatures need a place to stand, the battlefield is laid on the tested grid board, so placement, lanes and adjacency are already handled.
Each card's effect is then written by the AI, one card at a time, as code that belongs to your game. You can give the set a shared vocabulary of keywords, like shield, poison or taunt, and the engine applies them consistently. The deckbuilder game maker and autobattler game maker pages show two popular shapes built on these same pieces.
Computer opponents with their own decks
Card battlers in Tyrbo are single-player, so the rival is the engine's job too. Each opponent gets a deck and a personality: a swarm of small creatures, slow powerful spells, a poison build that wins by attrition. The AI writes how each rival chooses its plays, and the plan orders them into a ladder that introduces one idea per fight, ending with a boss deck that combines several.
Between fights, the engine can track a collection to complete, cards to win and packs to open, which pair naturally with the ads and purchases each game arrives wired with. Scores and win streaks can post to the live leaderboards.
Balance as a loop you can play
Card games live or die on balance, and balance is found by playing. Ask the AI to put a card editor in your test build: change a cost, an attack value or an effect, and replay the duel straight away. A helper that draws any card on demand lets you test a strange combination in one game rather than waiting for the right shuffle.
Art matters as well: a frame style, an illustration on every card, a table and a board. Tyrbo builds the frames and UI skin in your chosen look and generates the illustrations, so a set of forty cards shares one style. Card battlers in the gallery appear in gilded fantasy, anime, ink sketch, candy cute and spooky cartoon.
Fair shuffles, and turns that always end
Shuffling deserves a word too. Pure randomness can hand a player five expensive cards on the first turn and nothing they can afford, which feels unfair even when it is mathematically honest. Many card battlers soften this with an opening hand that can be redrawn once, a guaranteed cheap card early, or a deck size small enough that key cards come around often. Tell Tyrbo which approach you prefer, and the plan records it as one of the game's rules.
The card game version of a soft-lock is a turn that cannot finish: an effect that waits for a target that does not exist, a loop of triggers that never stops. Tyrbo checks every game for soft-locks before it leaves the pipeline, along with smooth play on low-end Android, wired ads and purchases, live leaderboards and a signed Android build you own. For the maker's view of designing cards and turns, see the card game maker.
Ideas you could type
- A card battler where kitchen utensils duel, and spoons heal while forks strike twice
- A deck of weather cards where you summon storms to flood your rival’s lanes
- Haunted portrait cards that fight from picture frames, gaining power each time an ally falls
From a sentence to your phone
- 1
Describe it
One sentence is enough. Say what you tap, what you dodge, what you win.
- 2
Answer a few questions
Each comes with our best guess picked, so most of the time you just tap Continue.
- 3
See the plan
A title, a pitch, every part of the game, and concept art, before anything is built.
- 4
Play it today
Scan the code and it runs on your phone. Change it by talking to it.
Built to ship, not just to prototype
Every game leaves the pipeline with all of this checked, not hoped for.
- No soft-locks
- Runs on low-end Android
- Ads and purchases wired
- Leaderboards live
- A signed build you own
Questions people ask
What does a card game engine handle that a regular engine does not?
Zones such as the deck, hand and discard pile, resource rules, turn steps and, above all, the order in which effects resolve. Tyrbo builds those on its tested cards interface and writes each card’s effect for your game.
Can I play against other people?
Card battlers in Tyrbo are single-player: you face computer opponents, each with its own deck and style. Leaderboards let players compare scores or streaks.
How do I balance my cards?
Ask for a card editor inside your test build. Change a cost or number, replay the duel at once, and keep what feels right. A draw-any-card helper lets you test rare combinations quickly.
Do I have to draw every card illustration?
No. Tyrbo generates the illustrations and builds the card frames in your game’s look, so the whole set is consistent. You describe each card, and the art follows.
Your game is one sentence away.
Make your gameSign in to get the plan and its concept art. Both are free.