[{"data":1,"prerenderedAt":694},["ShallowReactive",2],{"docs-navigation":3,"docs-page:\u002Fdocs\u002Fautomation\u002Fworked-examples\u002Falternating-direction":473},[4],{"title":5,"path":6,"stem":7,"children":8},"Docs","\u002Fdocs","docs",[9,12,49,99,295,345,399,433],{"title":10,"path":6,"stem":11},"Overview","docs\u002Findex",{"title":13,"path":14,"stem":15,"children":16,"order":18},"API Overview","\u002Fdocs\u002Fapi","docs\u002Fapi\u002Findex",[17,19,24,29,34,39,44],{"title":13,"path":14,"stem":15,"order":18},7,{"title":20,"path":21,"stem":22,"order":23},"Assets API","\u002Fdocs\u002Fapi\u002Fassets","docs\u002Fapi\u002Fassets",3,{"title":25,"path":26,"stem":27,"order":28},"Authentication","\u002Fdocs\u002Fapi\u002Fauthentication","docs\u002Fapi\u002Fauthentication",1,{"title":30,"path":31,"stem":32,"order":33},"Books API","\u002Fdocs\u002Fapi\u002Fbooks","docs\u002Fapi\u002Fbooks",6,{"title":35,"path":36,"stem":37,"order":38},"Components API","\u002Fdocs\u002Fapi\u002Fcomponents","docs\u002Fapi\u002Fcomponents",4,{"title":40,"path":41,"stem":42,"order":43},"Error Handling","\u002Fdocs\u002Fapi\u002Ferrors","docs\u002Fapi\u002Ferrors",5,{"title":45,"path":46,"stem":47,"order":48},"Games API","\u002Fdocs\u002Fapi\u002Fgames","docs\u002Fapi\u002Fgames",2,{"title":50,"path":51,"stem":52,"children":53,"order":43},"Automation","\u002Fdocs\u002Fautomation","docs\u002Fautomation\u002Findex",[54,55,59,69,73],{"title":50,"path":51,"stem":52,"order":43},{"title":56,"path":57,"stem":58,"order":38},"Pythia","\u002Fdocs\u002Fautomation\u002Fpythia","docs\u002Fautomation\u002Fpythia",{"title":60,"path":61,"stem":62,"children":63,"order":48},"Sequences","\u002Fdocs\u002Fautomation\u002Fsequences","docs\u002Fautomation\u002Fsequences\u002Findex",[64,65],{"title":60,"path":61,"stem":62,"order":48},{"title":66,"path":67,"stem":68},"Steps","\u002Fdocs\u002Fautomation\u002Fsequences\u002Fsteps","docs\u002Fautomation\u002Fsequences\u002Fsteps",{"title":70,"path":71,"stem":72,"order":28},"Triggers","\u002Fdocs\u002Fautomation\u002Ftriggers","docs\u002Fautomation\u002Ftriggers",{"title":74,"path":75,"stem":76,"children":77,"order":23},"Worked Examples","\u002Fdocs\u002Fautomation\u002Fworked-examples","docs\u002Fautomation\u002Fworked-examples\u002Findex",[78,79,83,87,91,95],{"title":74,"path":75,"stem":76,"order":23},{"title":80,"path":81,"stem":82,"order":23},"Alternating direction","\u002Fdocs\u002Fautomation\u002Fworked-examples\u002Falternating-direction","docs\u002Fautomation\u002Fworked-examples\u002Falternating-direction",{"title":84,"path":85,"stem":86,"order":28},"Booster draft","\u002Fdocs\u002Fautomation\u002Fworked-examples\u002Fbooster-draft","docs\u002Fautomation\u002Fworked-examples\u002Fbooster-draft",{"title":88,"path":89,"stem":90,"order":43},"Gathering into one space","\u002Fdocs\u002Fautomation\u002Fworked-examples\u002Fgathering-into-one-space","docs\u002Fautomation\u002Fworked-examples\u002Fgathering-into-one-space",{"title":92,"path":93,"stem":94,"order":48},"Stopping on the last card","\u002Fdocs\u002Fautomation\u002Fworked-examples\u002Fstopping-on-the-last-card","docs\u002Fautomation\u002Fworked-examples\u002Fstopping-on-the-last-card",{"title":96,"path":97,"stem":98,"order":38},"Turn-tracked open draft","\u002Fdocs\u002Fautomation\u002Fworked-examples\u002Fturn-order-draft","docs\u002Fautomation\u002Fworked-examples\u002Fturn-order-draft",{"title":100,"path":101,"stem":102,"children":103,"order":38},"Entities","\u002Fdocs\u002Fentities","docs\u002Fentities\u002Findex",[104,105,201,243],{"title":100,"path":101,"stem":102,"order":38},{"title":106,"path":107,"stem":108,"children":109},"Pieces","\u002Fdocs\u002Fentities\u002Fpieces","docs\u002Fentities\u002F01.pieces\u002Findex",[110,111,117,131,145,179],{"title":106,"path":107,"stem":108},{"title":112,"path":113,"stem":114,"children":115},"Books","\u002Fdocs\u002Fentities\u002Fpieces\u002Fbooks","docs\u002Fentities\u002F01.pieces\u002Fbooks\u002Findex",[116],{"title":112,"path":113,"stem":114},{"title":118,"path":119,"stem":120,"children":121},"Dice","\u002Fdocs\u002Fentities\u002Fpieces\u002Fdice","docs\u002Fentities\u002F01.pieces\u002Fdice\u002Findex",[122,123,127],{"title":118,"path":119,"stem":120},{"title":124,"path":125,"stem":126},"Polyhedral Die","\u002Fdocs\u002Fentities\u002Fpieces\u002Fdice\u002Fpolyhedral-die","docs\u002Fentities\u002F01.pieces\u002Fdice\u002Fpolyhedral-die",{"title":128,"path":129,"stem":130},"Spinner","\u002Fdocs\u002Fentities\u002Fpieces\u002Fdice\u002Fspinner","docs\u002Fentities\u002F01.pieces\u002Fdice\u002Fspinner",{"title":132,"path":133,"stem":134,"children":135},"Tiles and Stacks","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftiles-and-stacks","docs\u002Fentities\u002F01.pieces\u002Ftiles-and-stacks\u002Findex",[136,137,141],{"title":132,"path":133,"stem":134},{"title":138,"path":139,"stem":140},"Stack","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftiles-and-stacks\u002Fstack","docs\u002Fentities\u002F01.pieces\u002Ftiles-and-stacks\u002Fstack",{"title":142,"path":143,"stem":144},"Tile","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftiles-and-stacks\u002Ftile","docs\u002Fentities\u002F01.pieces\u002Ftiles-and-stacks\u002Ftile",{"title":146,"path":147,"stem":148,"children":149},"Tokens","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Findex",[150,151,155,159,163,167,171,175],{"title":146,"path":147,"stem":148},{"title":152,"path":153,"stem":154},"Block","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens\u002Fblock","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Fblock",{"title":156,"path":157,"stem":158},"Disc","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens\u002Fdisc","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Fdisc",{"title":160,"path":161,"stem":162},"Image Token","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens\u002Fimage-token","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Fimage-token",{"title":164,"path":165,"stem":166},"Model Token","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens\u002Fmodel-token","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Fmodel-token",{"title":168,"path":169,"stem":170},"Pawn","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens\u002Fpawn","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Fpawn",{"title":172,"path":173,"stem":174},"Pyramid","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens\u002Fpyramid","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Fpyramid",{"title":176,"path":177,"stem":178},"Ring","\u002Fdocs\u002Fentities\u002Fpieces\u002Ftokens\u002Fring","docs\u002Fentities\u002F01.pieces\u002Ftokens\u002Fring",{"title":180,"path":181,"stem":182,"children":183},"Utility Pieces","\u002Fdocs\u002Fentities\u002Fpieces\u002Futility-pieces","docs\u002Fentities\u002F01.pieces\u002Futility-pieces\u002Findex",[184,185,189,193,197],{"title":180,"path":181,"stem":182},{"title":186,"path":187,"stem":188},"Bag","\u002Fdocs\u002Fentities\u002Fpieces\u002Futility-pieces\u002Fbag","docs\u002Fentities\u002F01.pieces\u002Futility-pieces\u002Fbag",{"title":190,"path":191,"stem":192},"Counter","\u002Fdocs\u002Fentities\u002Fpieces\u002Futility-pieces\u002Fcounter","docs\u002Fentities\u002F01.pieces\u002Futility-pieces\u002Fcounter",{"title":194,"path":195,"stem":196},"Timer","\u002Fdocs\u002Fentities\u002Fpieces\u002Futility-pieces\u002Ftimer","docs\u002Fentities\u002F01.pieces\u002Futility-pieces\u002Ftimer",{"title":198,"path":199,"stem":200},"Token Bowl","\u002Fdocs\u002Fentities\u002Fpieces\u002Futility-pieces\u002Ftoken-bowl","docs\u002Fentities\u002F01.pieces\u002Futility-pieces\u002Ftoken-bowl",{"title":202,"path":203,"stem":204,"children":205},"Spaces","\u002Fdocs\u002Fentities\u002Fspaces","docs\u002Fentities\u002F02.spaces\u002Findex",[206,207,221],{"title":202,"path":203,"stem":204},{"title":208,"path":209,"stem":210,"children":211},"Layouts","\u002Fdocs\u002Fentities\u002Fspaces\u002Flayouts","docs\u002Fentities\u002F02.spaces\u002Flayouts\u002Findex",[212,213,217],{"title":208,"path":209,"stem":210},{"title":214,"path":215,"stem":216},"Hex Grid","\u002Fdocs\u002Fentities\u002Fspaces\u002Flayouts\u002Fhex-grid","docs\u002Fentities\u002F02.spaces\u002Flayouts\u002Fhex-grid",{"title":218,"path":219,"stem":220},"Square Grid","\u002Fdocs\u002Fentities\u002Fspaces\u002Flayouts\u002Fsquare-grid","docs\u002Fentities\u002F02.spaces\u002Flayouts\u002Fsquare-grid",{"title":222,"path":223,"stem":224,"children":225},"Placement Spaces","\u002Fdocs\u002Fentities\u002Fspaces\u002Fplacement-spaces","docs\u002Fentities\u002F02.spaces\u002Fplacement-spaces\u002Findex",[226,227,231,235,239],{"title":222,"path":223,"stem":224},{"title":228,"path":229,"stem":230},"Box Space","\u002Fdocs\u002Fentities\u002Fspaces\u002Fplacement-spaces\u002Fbox-space","docs\u002Fentities\u002F02.spaces\u002Fplacement-spaces\u002Fbox-space",{"title":232,"path":233,"stem":234},"Hex Space","\u002Fdocs\u002Fentities\u002Fspaces\u002Fplacement-spaces\u002Fhex-space","docs\u002Fentities\u002F02.spaces\u002Fplacement-spaces\u002Fhex-space",{"title":236,"path":237,"stem":238},"Orb Space","\u002Fdocs\u002Fentities\u002Fspaces\u002Fplacement-spaces\u002Forb-space","docs\u002Fentities\u002F02.spaces\u002Fplacement-spaces\u002Forb-space",{"title":240,"path":241,"stem":242},"Point Space","\u002Fdocs\u002Fentities\u002Fspaces\u002Fplacement-spaces\u002Fpoint-space","docs\u002Fentities\u002F02.spaces\u002Fplacement-spaces\u002Fpoint-space",{"title":244,"path":245,"stem":246,"children":247},"Annotations","\u002Fdocs\u002Fentities\u002Fannotations","docs\u002Fentities\u002F03.annotations\u002Findex",[248,249,259,285],{"title":244,"path":245,"stem":246},{"title":250,"path":251,"stem":252,"children":253},"Freehand Annotations","\u002Fdocs\u002Fentities\u002Fannotations\u002Ffreehand-annotations","docs\u002Fentities\u002F03.annotations\u002Ffreehand-annotations\u002Findex",[254,255],{"title":250,"path":251,"stem":252},{"title":256,"path":257,"stem":258},"Freehand Annotation","\u002Fdocs\u002Fentities\u002Fannotations\u002Ffreehand-annotations\u002Ffreehand-annotation","docs\u002Fentities\u002F03.annotations\u002Ffreehand-annotations\u002Ffreehand-annotation",{"title":260,"path":261,"stem":262,"children":263},"Shape Annotations","\u002Fdocs\u002Fentities\u002Fannotations\u002Fshape-annotations","docs\u002Fentities\u002F03.annotations\u002Fshape-annotations\u002Findex",[264,265,269,273,277,281],{"title":260,"path":261,"stem":262},{"title":266,"path":267,"stem":268},"Arrow Annotation","\u002Fdocs\u002Fentities\u002Fannotations\u002Fshape-annotations\u002Farrow-annotation","docs\u002Fentities\u002F03.annotations\u002Fshape-annotations\u002Farrow-annotation",{"title":270,"path":271,"stem":272},"Box Annotation","\u002Fdocs\u002Fentities\u002Fannotations\u002Fshape-annotations\u002Fbox-annotation","docs\u002Fentities\u002F03.annotations\u002Fshape-annotations\u002Fbox-annotation",{"title":274,"path":275,"stem":276},"Hex Annotation","\u002Fdocs\u002Fentities\u002Fannotations\u002Fshape-annotations\u002Fhex-annotation","docs\u002Fentities\u002F03.annotations\u002Fshape-annotations\u002Fhex-annotation",{"title":278,"path":279,"stem":280},"Orb Annotation","\u002Fdocs\u002Fentities\u002Fannotations\u002Fshape-annotations\u002Forb-annotation","docs\u002Fentities\u002F03.annotations\u002Fshape-annotations\u002Forb-annotation",{"title":282,"path":283,"stem":284},"Triangle Annotation","\u002Fdocs\u002Fentities\u002Fannotations\u002Fshape-annotations\u002Ftriangle-annotation","docs\u002Fentities\u002F03.annotations\u002Fshape-annotations\u002Ftriangle-annotation",{"title":286,"path":287,"stem":288,"children":289},"Text Annotations","\u002Fdocs\u002Fentities\u002Fannotations\u002Ftext-annotations","docs\u002Fentities\u002F03.annotations\u002Ftext-annotations\u002Findex",[290,291],{"title":286,"path":287,"stem":288},{"title":292,"path":293,"stem":294},"Text Annotation","\u002Fdocs\u002Fentities\u002Fannotations\u002Ftext-annotations\u002Ftext-annotation","docs\u002Fentities\u002F03.annotations\u002Ftext-annotations\u002Ftext-annotation",{"title":296,"path":297,"stem":298,"children":299,"order":28},"Getting Started","\u002Fdocs\u002Fgetting-started","docs\u002Fgetting-started\u002Findex",[300,301,305,309,313,341],{"title":296,"path":297,"stem":298,"order":28},{"title":302,"path":303,"stem":304,"order":48},"Tutorial 2: Build a Deck of Cards","\u002Fdocs\u002Fgetting-started\u002Fbuild-a-deck-of-cards","docs\u002Fgetting-started\u002Fbuild-a-deck-of-cards",{"title":306,"path":307,"stem":308,"order":23},"Tutorial 3: Use Your Own Images","\u002Fdocs\u002Fgetting-started\u002Fcustom-images","docs\u002Fgetting-started\u002Fcustom-images",{"title":310,"path":311,"stem":312,"order":38},"Frequently Asked Questions","\u002Fdocs\u002Fgetting-started\u002Ffaq","docs\u002Fgetting-started\u002Ffaq",{"title":314,"path":315,"stem":316,"children":317,"order":319},"Why Playtest Parlor?","\u002Fdocs\u002Fgetting-started\u002Fwhy-playtest-parlor","docs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Findex",[318,320,324,328,332,336],{"title":314,"path":315,"stem":316,"order":319},-2,{"title":321,"path":322,"stem":323,"order":38},"Compared to In-Person Playtesting","\u002Fdocs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-in-person","docs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-in-person",{"title":325,"path":326,"stem":327,"order":23},"Compared to PlayingCards.io","\u002Fdocs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-playingcards-io","docs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-playingcards-io",{"title":329,"path":330,"stem":331,"order":48},"Compared to Screentop.gg","\u002Fdocs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-screentop","docs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-screentop",{"title":333,"path":334,"stem":335,"order":28},"Compared to Tabletop Simulator","\u002Fdocs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-tts","docs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcompared-to-tts",{"title":337,"path":338,"stem":339,"order":340},"Platform Comparison","\u002Fdocs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcomparison-matrix","docs\u002Fgetting-started\u002Fwhy-playtest-parlor\u002Fcomparison-matrix",0,{"title":342,"path":343,"stem":344,"order":28},"Tutorial 1: Your First Game","\u002Fdocs\u002Fgetting-started\u002Fyour-first-game","docs\u002Fgetting-started\u002Fyour-first-game",{"title":346,"path":347,"stem":348,"children":349,"order":48},"Interface","\u002Fdocs\u002Finterface","docs\u002Finterface\u002Findex",[350,351,355,360,364,368,372,376,381,386,390,394],{"title":346,"path":347,"stem":348,"order":48},{"title":352,"path":353,"stem":354,"order":38},"The Action Dock","\u002Fdocs\u002Finterface\u002Faction-dock","docs\u002Finterface\u002Faction-dock",{"title":356,"path":357,"stem":358,"order":359},"Finding Your Discord User ID","\u002Fdocs\u002Finterface\u002Fdiscord-id","docs\u002Finterface\u002Fdiscord-id",11,{"title":361,"path":362,"stem":363,"order":18},"The Entity Browser","\u002Fdocs\u002Finterface\u002Fentity-browser","docs\u002Finterface\u002Fentity-browser",{"title":365,"path":366,"stem":367,"order":43},"The Minimap","\u002Fdocs\u002Finterface\u002Fminimap","docs\u002Finterface\u002Fminimap",{"title":369,"path":370,"stem":371,"order":33},"The Player Hand","\u002Fdocs\u002Finterface\u002Fplayer-hand","docs\u002Finterface\u002Fplayer-hand",{"title":373,"path":374,"stem":375,"order":23},"The Players Panel","\u002Fdocs\u002Finterface\u002Fplayers-panel","docs\u002Finterface\u002Fplayers-panel",{"title":377,"path":378,"stem":379,"order":380},"Sequences Panel","\u002Fdocs\u002Finterface\u002Fsequences-panel","docs\u002Finterface\u002Fsequences-panel",10,{"title":382,"path":383,"stem":384,"order":385},"Session Notebook","\u002Fdocs\u002Finterface\u002Fsession-notebook","docs\u002Finterface\u002Fsession-notebook",8,{"title":387,"path":388,"stem":389,"order":28},"The Table","\u002Fdocs\u002Finterface\u002Ftable","docs\u002Finterface\u002Ftable",{"title":391,"path":392,"stem":393,"order":48},"The Toolbar","\u002Fdocs\u002Finterface\u002Ftoolbar","docs\u002Finterface\u002Ftoolbar",{"title":395,"path":396,"stem":397,"order":398},"Turn Tracking","\u002Fdocs\u002Finterface\u002Fturn-tracking","docs\u002Finterface\u002Fturn-tracking",9,{"title":400,"path":401,"stem":402,"children":403,"order":23},"Playtests","\u002Fdocs\u002Fplaytests","docs\u002Fplaytests\u002Findex",[404,405,409,413,417,421,425,429],{"title":400,"path":401,"stem":402,"order":23},{"title":406,"path":407,"stem":408,"order":43},"Design Journal","\u002Fdocs\u002Fplaytests\u002Fdesign-journal","docs\u002Fplaytests\u002Fdesign-journal",{"title":410,"path":411,"stem":412,"order":48},"Inviting players","\u002Fdocs\u002Fplaytests\u002Finviting-players","docs\u002Fplaytests\u002Finviting-players",{"title":414,"path":415,"stem":416,"order":43},"Player count guidelines","\u002Fdocs\u002Fplaytests\u002Fplayer-count-guidelines","docs\u002Fplaytests\u002Fplayer-count-guidelines",{"title":418,"path":419,"stem":420,"order":33},"Promoting to communities","\u002Fdocs\u002Fplaytests\u002Fpromoting-to-communities","docs\u002Fplaytests\u002Fpromoting-to-communities",{"title":422,"path":423,"stem":424,"order":38},"Reviewing outcomes","\u002Fdocs\u002Fplaytests\u002Freviewing-outcomes","docs\u002Fplaytests\u002Freviewing-outcomes",{"title":426,"path":427,"stem":428,"order":28},"Starting a playtest","\u002Fdocs\u002Fplaytests\u002Fstarting-a-playtest","docs\u002Fplaytests\u002Fstarting-a-playtest",{"title":430,"path":431,"stem":432,"order":23},"Surveys","\u002Fdocs\u002Fplaytests\u002Fsurveys","docs\u002Fplaytests\u002Fsurveys",{"title":434,"path":435,"stem":436,"children":437,"order":48},"Setting up a Table","\u002Fdocs\u002Fsetting-up-a-table","docs\u002Fsetting-up-a-table\u002Findex",[438,439,443,447,469],{"title":434,"path":435,"stem":436,"order":48},{"title":440,"path":441,"stem":442,"order":28},"Adding pieces to a table","\u002Fdocs\u002Fsetting-up-a-table\u002Fadding-pieces-to-a-table","docs\u002Fsetting-up-a-table\u002Fadding-pieces-to-a-table",{"title":444,"path":445,"stem":446,"order":48},"Building your first table layout","\u002Fdocs\u002Fsetting-up-a-table\u002Fbuilding-your-first-table-layout","docs\u002Fsetting-up-a-table\u002Fbuilding-your-first-table-layout",{"title":448,"path":449,"stem":450,"children":451,"order":38},"Importing Assets","\u002Fdocs\u002Fsetting-up-a-table\u002Fimporting-assets","docs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Findex",[452,453,457,461,465],{"title":448,"path":449,"stem":450,"order":38},{"title":454,"path":455,"stem":456,"order":23},"Importing from Tabletop Simulator","\u002Fdocs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fimporting-from-tabletop-simulator","docs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fimporting-from-tabletop-simulator",{"title":458,"path":459,"stem":460,"order":28},"Importing from The Game Crafter","\u002Fdocs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fimporting-from-the-game-crafter","docs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fimporting-from-the-game-crafter",{"title":462,"path":463,"stem":464,"order":48},"Manual Uploads","\u002Fdocs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fimporting-with-manual-uploads","docs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fimporting-with-manual-uploads",{"title":466,"path":467,"stem":468,"order":38},"Playtest Parlor Archive","\u002Fdocs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fplaytest-parlor-archive","docs\u002Fsetting-up-a-table\u002Fimporting-assets\u002Fplaytest-parlor-archive",{"title":470,"path":471,"stem":472,"order":23},"Saving a table configuration","\u002Fdocs\u002Fsetting-up-a-table\u002Fsaving-a-table-configuration","docs\u002Fsetting-up-a-table\u002Fsaving-a-table-configuration",{"id":474,"title":80,"body":475,"description":688,"extension":689,"meta":690,"navigation":691,"path":81,"seo":692,"stem":82,"__hash__":693},"docs\u002Fdocs\u002Fautomation\u002Fworked-examples\u002Falternating-direction.md",{"type":476,"value":477,"toc":680},"minimark",[478,483,487,499,502,506,514,519,538,543,580,585,610,613,617,620,631,639,645,649,652,659,663,677],[479,480,482],"h2",{"id":481},"why-there-is-no-alternate-direction-option","Why there is no alternate-direction option",[484,485,486],"p",{},"Plenty of drafts turn around between rounds. The first stack goes left, the second goes right, and so on.",[484,488,489,490,494,495,498],{},"There is no switch for that on the passing step, and the reason is worth understanding before you build\naround it. A ",[491,492,493],"strong",{},"Pass Stack"," step has one Direction, set when you author it. Alternating is not a property\nof the step, it is a property of the ",[491,496,497],{},"round"," the step is running in. Something has to remember which\nround you are on, and steps do not remember anything between runs. A counter does.",[484,500,501],{},"So you compose it: a counter holds which way the stacks are going, and two passing steps take turns being\nthe one that runs.",[479,503,505],{"id":504},"the-recipe","The recipe",[484,507,508,509,513],{},"Start from the ",[510,511,512],"a",{"href":85},"booster draft"," and put a counter on the\ntable for the direction. Give it the value 0. This counter is a flag, not a score, and no player needs to\nlook at it.",[484,515,516],{},[491,517,518],{},"Step 1 -- read the flag into context.",[520,521,522],"ul",{},[523,524,525,528,529,532,533,537],"li",{},[491,526,527],{},"Read Counter",", counter set to your direction counter, ",[491,530,531],{},"Save Result As"," set to ",[534,535,536],"code",{},"direction",".",[484,539,540],{},[491,541,542],{},"Steps 2 and 3 -- two passing steps, one of which runs.",[520,544,545,565],{},[523,546,547,549,550,553,554,557,558,561,562,564],{},[491,548,493],{}," with Which Stack = Seat, From Seat = All Seats, Direction = ",[491,551,552],{},"Left",".\n",[491,555,556],{},"Only If",": subject ",[491,559,560],{},"Context Entry",", key ",[534,563,536],{},", operator equals, value 0.",[523,566,567,569,570,553,573,557,575,561,577,579],{},[491,568,493],{}," with the same settings except Direction = ",[491,571,572],{},"Right",[491,574,556],{},[491,576,560],{},[534,578,536],{},", operator equals, value 1.",[484,581,582],{},[491,583,584],{},"Steps 4 and 5 -- flip the flag for next time.",[520,586,587,599],{},[523,588,589,592,593,557,595,561,597,564],{},[491,590,591],{},"Adjust Counter",", mode Set, value 1.\n",[491,594,556],{},[491,596,560],{},[534,598,536],{},[523,600,601,603,604,557,606,561,608,579],{},[491,602,591],{},", mode Set, value 0.\n",[491,605,556],{},[491,607,560],{},[534,609,536],{},[484,611,612],{},"Run it and the stacks go one way. Run it again and they go the other.",[479,614,616],{"id":615},"read-the-flag-first-and-branch-on-the-copy","Read the flag first, and branch on the copy",[484,618,619],{},"Step 1 looks like an unnecessary detour. It is the only thing making this work, so it is worth being\nexplicit about what happens without it.",[484,621,622,623,626,627,630],{},"Suppose steps 4 and 5 tested the counter directly, with a ",[491,624,625],{},"Counter Value"," condition, instead of the\ncontext copy. The flag starts at 0. Step 4's condition matches, so it sets the counter to 1. Step 5 then\nevaluates its own condition against the counter as it is ",[491,628,629],{},"now",", finds 1, and sets it straight back to\n0. Both branches run, the flag ends where it started, and the direction never changes. The sequence\nreports success every time.",[484,632,633,635,636,638],{},[491,634,527],{}," takes one snapshot at the top and stores it in the context. Every ",[491,637,556],{}," after\nthat compares against the snapshot, so all four gates see the same answer no matter what the later steps\nwrite. Exactly one passing step runs, and exactly one flag write runs.",[484,640,641,642,644],{},"This is what ",[491,643,531],{}," is for, and the pattern generalises: any sequence that both reads and\nwrites the same counter should read it into context first and branch on the copy. Branching on a value\nyou are also changing is a bug that hides, because nothing errors.",[479,646,648],{"id":647},"why-a-flag-and-not-the-round-number","Why a flag and not the round number",[484,650,651],{},"You might expect to keep a round counter and test whether it is even or odd. Conditions compare values\n-- equals, greater than, and so on -- and there is no remainder operator, so there is no way to express\n\"is this number even\". A dedicated 0-or-1 flag sidesteps the question entirely.",[484,653,654,655,658],{},"If you also want the round number for something else, such as\n",[510,656,657],{"href":93},"stopping the draft",", keep two counters. They\nare cheap and each one answers one question.",[479,660,662],{"id":661},"one-more-reason-this-only-works-in-a-sequence","One more reason this only works in a sequence",[484,664,665,668,669,672,673,676],{},[491,666,667],{},"Pass Left"," and ",[491,670,671],{},"Pass Right"," in the ",[510,674,675],{"href":353},"Action Dock"," each send a stack the\nway their label says, so a table can already pass either direction by hand. What a button cannot do is\ndecide which of the two to use. A player has to know, every round, which one to press, and one person\nforgetting turns the round into a mess that is tedious to unpick.",[484,678,679],{},"The sequence holds both directions and picks between them from the flag, so the round is right whether\nor not anyone remembers which way it was going.",{"title":681,"searchDepth":48,"depth":48,"links":682},"",[683,684,685,686,687],{"id":481,"depth":48,"text":482},{"id":504,"depth":48,"text":505},{"id":615,"depth":48,"text":616},{"id":647,"depth":48,"text":648},{"id":661,"depth":48,"text":662},"Turn a draft around between rounds using a counter and a branch, and why direction is composed rather than toggled.","md",{},{"order":23},{"title":80,"description":688},"t0kEa42WfR0YKtGzEJP34xIGIsd4Ne4cXfJv8A8Yi5A",1788453382208]