untap.in

Home›Guides›Turn a click-and-drag table into one built for your game

Turn a click-and-drag table into one built for your game

Out of the box, Untap.in is a table: cards are images, zones are places, and you move everything by hand, exactly as you would on a kitchen table. That is why it runs forty-odd games. It is also why a turn can be fifteen clicks of housekeeping before the one decision that matters. Untap Script is how a table learns your game. A board helper lays out the play mat and does the chores. A card script puts each card's text on a button. Neither one plays for you.

Play-test a deck nowin your browser · nothing to install

An Untap.in table running a board helper: labelled boxes for each area of the play mat, a resource row, buttons along the bottom of the board, and a script tip in the game log
The same table with a board helper loaded. Every area of the mat is a labelled box that cards snap into, the buttons know what the game does next, and the log carries the reminders.

The same table, before and after

A plain table knows nothing about your game. It does not know your resources go in a row, that a new turn means straightening everything you tapped, or that an opening hand is seven cards and not six. You know, so you do it, every turn, by dragging.

A two-player card game on Untap.in: both play areas, hands, decks and discard piles in the browser
A live two-player table. Drag cards between zones, tap, flip and counter them, and talk to your opponent from the same screen.

The table at the top of this page is the same table with a board helper loaded, and it has its own layout. Each area of your game's mat is a labelled box, and cards snap into it. A card played from hand goes to the row it belongs in. Buttons appear when they are useful and disappear when they are not: Draw opening hand before the game starts, Add a resource when you have not added one yet this turn. Reminders for the step people forget show up in the game log as a tip that only you see.

Nothing about the game itself changed. You can still drag any card anywhere, and your opponent sees the same ordinary moves they always did. The table just stops making you do the boring parts by hand.

Two kinds of script: one for the board, one for the card

Board helperCard script
LivesOn your account, one per board layout. You load it onto a table.On the card in the card database, so it comes with the card.
Knows aboutYour whole side of the table: zones, boxes, your turn, your hand.Itself. Each copy in play runs its own, and self is that copy.
TypicallyLays out the mat, sends cards to the right row, deals the opening hand, does start-of-turn chores.Puts its text on a button: draw two, make the token, move the counter, look at the top three.
Who writes itYou, or anyone who has published one for your game.The card database, maintained for the site. You can try your own version on your own copy.
Turned on byLoading it (up to three at once), or setting one to load itself.Nothing. On by default, with a switch per game.

They use one language, so they work together. A board helper's Resources box is the same box a card script can send a card to, and a button looks and behaves the same wherever it sits.

What a board helper does

A board helper is a whole board saved under one name: its furniture, plus the script that runs it. The furniture is the part you can see:

The script does the work. It can react to what happens on the table: a card entering play, leaving a box, being tapped, a turn starting, a phase changing. It can also put buttons on the hand, the board, a box or every card. Buttons have a when:, so they show up only when they apply, and a once-per-game button can remove itself after you press it. A helper can keep values between turns, and survives a page refresh. A helper can also have settings: whoever loads it fills in a short form (what to play to, which colour the buttons are) without reading any code.

64 board helpers have been published so far, across 10 games. Some are fully laid-out play mats with every area of the mat in place; others are a single button somebody got tired of pressing by hand.

What a card script does

A card script reads like the card's text, because it mostly is the card's text. A button appears down the card's right edge while it is in the right zone and can be used. It might draw the cards, make the token from your tokens zone, put the counter on, or open the top of your deck to look through. A card that refers to other cards can watch for them: when another of your units leaves play, put a counter on this one.

When a card triggers, it asks first. "Stone Sentinel arrived. Draw a card?" is a question on your screen, and nothing moves until you answer. Anything that picks a target leaves the choice to you: the script draws the arrow after you click. And when a card tells an opponent to do something, the script cannot do it for them, because it can only touch your cards. Instead it can offer them the button: a line in the log, with a button on their screen that does it for them if they want.

63,233 cards across 13 games carry a script tonight, and the number grows as more are written. They are on by default. If you would rather do it all by hand in a particular game, turn it off for that game in the game bar's cog under Card Scripts. Turning it off also unbinds the cards already in play.

Putting a board helper on your table

  1. Open a game of the type you play. Board helpers belong to a game, so the list you see is that game's.
  2. Board menu → Board Helpers. The Public tab is every helper people have published for the game, with featured ones marked. You can read each one's script before you load it, and filter to the featured ones or your game's format.
  3. Load it. The furniture appears on your side and the script arms. You can stack up to three helpers at once. If two of them want a box with the same name, the second one tells you rather than taking over the first one's box.
  4. Star the ones you like, and set one to load itself every time you start that game, per format if you play more than one. On an empty board, the bottom left also offers up to six helpers in one click: featured ones, then your starred ones, then your own.
  5. Share one by link. Every published helper has a permanent address, untap.in/helper/<code>, that opens it to read and load. That is the link to post in your group's chat.

A published helper you load costs you nothing: it is loaded by reference, so it uses none of your own slots. You can keep three helpers of your own per game, or ten with Power Up. The bar along the bottom of the Board Helpers screen shows what is on your table right now, with an × to take any one off and Unload all to clear it.

Writing your own

Switch on Developer Mode in the Board Helpers screen, on your own tab. A </> button appears on the game bar (on desktop; the phone runs helpers but has no editor). It opens a script editor beside the table with three things built in:

Nothing runs until you press Apply, so a half-written handler never acts on the table. Here is a complete board helper for a made-up game. Press + for a new helper, paste this in, press Apply, and the two rows and the die appear:

#grammar 3

// A board for a made-up game: a front row, a resource row, a die,
// a once-per-game opening hand, and the start of every turn done for you.

box "Front row" { pos: [60, 80], color: "green", stack: "horizontal", overlap: 0, minWidth: 4 }
box "Resources" { pos: [82, 80], color: "olive", stack: "horizontal", overlap: 50, minWidth: 4 }
die "d6" { pos: [84, 160], sides: 6 }

state dealt = false

onReady() {
  addButton({
    text: "Draw opening hand",
    at: "hand",
    color: "goldenrod",
    when: !dealt && me.hand().length == 0,
    emit: "deal"
  });
}

onEmit("deal") {
  dealt = true;
  draw(7);
}

// Whatever you put on the table finds its own row.
onEnterZone("play-1") {
  if (card.meta.type == "resource") {
    moveCard(card, box("Resources"));
  } else {
    moveCard(card, box("Front row"));
  }
}

// The housekeeping of a new turn, so you start on the decision.
onTurnStart("mine") {
  untap(zone("play-1").cards);
  tip("Your turn. Everything is untapped: draw a card.");
}

Replace "resource" with whatever your game calls its resource cards. Press Log zones in the Devlog once in a game you have not scripted before, and it lists every zone the game has under both names: the one a script uses and the one the board shows. When the layout is where you want it, drag the boxes around the table. Their pos: values in the script follow, and Save writes both halves back into the helper.

A card script is the same language with self in it. Here is one for a made-up card with a trigger and a tap ability:

#grammar 1

// Stone Sentinel, a made-up unit whose text reads:
//   When Stone Sentinel enters play, draw a card.
//   Tap: look at the top three cards of your deck.

// A trigger asks first. The draw happens on your "Yes", never on its own.
onEnterZone("play-1") {
  ask({ text: "Stone Sentinel arrived. Draw a card?", emit: "arrived" });
}

onEmit("arrived") {
  if (event.ok) {
    draw(1);
  }
}

onReady() {
  addButton({
    text: "Look 3",
    at: self,
    zones: ["play-1"],
    tip: "Tap Stone Sentinel to look at the top three cards of your deck",
    when: !hasTag(self, "pivot-90"),
    do: () => {
      tap(self);
      peek(zone("deck-1"), 3);
    }
  });
}

To try one, right-click a card in a game, with Developer Mode on, and choose Card Script from its full menu. Try on this card runs what you wrote on your own copies, for this game only. Nothing in that tab is saved to the card database or seen by anyone else.

When a helper is good, publish it from your own tab. It joins the game's Public list with a permanent link. Publish again as it improves, and each update is a new version of the same helper, at the same link.

What a script will never do

Untap.in has no rules engine, and Untap Script does not add one. That is a decision, not a gap, and the language is built around it:

Where to find the documentation

The full reference is the Untap Script guide. It covers every handler, effect, button option and limit, with worked examples, including a complete board helper and a complete card script. Like this page, it uses invented cards, so nothing in it assumes your game: copy the shape of an example and fill in your game's words. Every example on it is compiled against the language whenever the language changes, so if it is on that page, it works.

The quickest way to learn is to read somebody else's: open the Public tab, pick a helper for your game, and read its script before you load it. If you are designing your own game rather than scripting a published one, play-testing your own card game covers getting the cards in first. Questions, and helpers worth showing off, go in the Untap.in Discord.

Frequently asked questions

What is Untap Script?

A small scripting language built into Untap.in. It runs in your browser and acts through your ordinary game actions, to lay out your board, put buttons on cards, and handle the routine parts of a turn.

What is the difference between a board helper and a card script?

A board helper is a whole board layout with its own script, which you load onto a table: boxes, counters, dice and the buttons that run your turn. A card script lives on one card in the database and turns that card’s text into a button.

Do I need to know how to code to use them?

No. Loading a published board helper is two clicks from the board menu, and card scripts are already on. Writing your own is the only part that takes code, and the reference is written for people who have not written any.

Does a board helper enforce the rules?

No. Untap.in has no rules engine and scripts do not add one. Nothing is ever stopped, and a draw, a shuffle or a life change waits for you to press something.

Does my opponent need the same board helper?

No. Your helper runs in your browser on your cards. Your opponent sees your furniture and an ordinary list of moves, whatever they have loaded themselves.

How many board helpers can I have?

Three of your own per game, or ten with Power Up. Published helpers you load use none of those slots, and you can stack up to three at once.

Can I turn card scripts off?

Yes, per game, from the game bar’s cog under Card Scripts. Turning them off also unbinds the cards already in play.

Can I write board helpers on a phone?

Helpers and card scripts run on a phone. The script editor is desktop only.

Where is the Untap Script reference?

At untap.in/user/untap-script. It documents every part of the language with worked examples, all of which are compiled against the language whenever it changes.

Bring a list

Import a deck, goldfish a few hands, then open a table and send your pod the link. It runs in the browser, and the first play-test takes about as long to set up as reading this did.

Play-test a deck now

More guides

How to play-test a Commander deck online

Where to play Commander online depends on what you are trying to do: goldfish a new list, play your pod across three cities, play your paper deck over webcam, or have the rules enforced. Every option, honestly compared.

Updated 3 December 2026
How to play-test a Magic deck online

Goldfishing tells you whether a list works on its own; a real opponent tells you whether it works. How to do both online, what the deck-site playtesters can and cannot do, and how to test a change instead of guessing.

Updated 3 December 2026
MTG Arena has no Commander. Here is how to play it anyway

Arena's Brawl is two players at 25 life, and there is no four-player mode. Export the deck from Arena, paste it into Untap.in, and sit at a four-seat Commander table in the browser with the list you already built.

Updated 3 December 2026
Draft online, then play the deck you drafted

Booster draft, cube and sealed in the browser: bots fill the empty seats, you draft from any set in the database or a CubeCobra list, and the deck you build is played at the same table. Compared honestly with the pick-trainers.

Updated 3 December 2026
Import a deck from Moxfield, Archidekt or anywhere else

Paste a deck URL from Moxfield, Archidekt, EDHREC, MTGGoldfish and dozens of other sites, or a plain-text list, and play-test it online in the browser. Every printing kept, sideboard included, nothing retyped.

Updated 3 December 2026
A Cockatrice alternative that runs in the browser

Cockatrice is a free desktop tabletop for Magic with no rules engine. Untap.in is the same idea with no download, voice at the table, rewind, replays and 50-odd other card games. When to switch, and when not to.

Updated 3 December 2026
An XMage alternative, for the half of you who should switch

XMage enforces every rule and runs as a Java download. Untap.in trusts the table and runs in the browser. Which one you want depends on whether you are learning the rules or play-testing a deck — this page says which is which.

Updated 3 December 2026
A Tabletop Simulator alternative for card games

Tabletop Simulator is a paid 3D sandbox that becomes a card table through mods. Untap.in is a flat table built for card games, free for everyone at it, with the card database kept for you. For Magic and 50-odd other games.

Updated 3 December 2026
Playing dead card games online

Your game stopped printing in 2002, 2013 or last year. Here is how out-of-print CCGs stay playable: a table that enforces no rules, the community databases that outlive the publishers, and the fan-made sets still being released.

Updated 3 December 2026
How to play 2v2 and team card games online

Two teams or three, up to eight players, one shared life total and one shared turn per team. How to set up a 2v2, Two-Headed Giant or team game online, and what each player needs.

Updated 2 December 2026
How to test two of your decks against each other

Put two to six of your own decks at one table and play every seat yourself. How to run a deck matchup online, rewind to try the other line, and keep a result you can trust.

Updated 2 December 2026
Play-test your own card game online

Designing a card game, or custom cards for one? Upload the cards with their art and text, build decks from them, goldfish alone or sit on both sides, then play-test against real people in the browser. No rules engine to code against.

Updated 11 November 2026
Pokémon TCG Pocket on a shared table

Play-test a Pokémon TCG Pocket deck online with cards you have not pulled yet, against a friend, in the browser. Twenty-card decks, Limitless import, points on a counter, no rules engine. What the app does that a table cannot, and the other way round.

Updated 11 November 2026
Pokémon TCG online in the formats the official client will not run

TCG Live runs Standard, a trimmed Expanded, and Gym Leader Challenge only in rotating windows. A shared table runs whatever your group agrees to: full Expanded, GLC any day, a 2003 deck against a 2005 deck. How, and what to expect.

Updated 11 November 2026
Play Union Arena online

Bandai has no online client for Union Arena, and TCG+ builds decks but does not play. Untap.in has the card pool and a two-seat table in the browser: import or type a fifty-card deck, send a link, and play the game the way you would across a mat.

Updated 11 November 2026
Play Final Fantasy TCG online

A browser table for Final Fantasy TCG with every printing synced from Square Enix's official card list, deck import from FFDecks and Materia Hunter, and a real opponent. For when the Tabletop Simulator mod is four sets behind.

Updated 11 November 2026