Practice/intro text + layout pass
Browse files- cover story: 'your age' (not 'around your age'), drop the running-total clause; goal reverts
to 'open chests and learn which ones are worth your while' (+ collect as many as you can)
- partner reveal: only the checkmark is green; text reverts to 'You were matched with your
partner (#NNNN from our community database)'
- practice now shows the 'Inside the forest hut / Try x/6' line like the real game, plus a
PRACTICE badge bottom-left; the red feedback moved down so it no longer covers that line
- practice step 2 adds 'no matter which side it appears on' (the chests had just swapped)
- practice feedback is now a single font size for both lines
- dropped the quiz question about the running total
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files changed (2)
- experiment_structure.py+15-19
- web_app.py+4-5
480 unmodified lines48148248348448548648735 unmodified lines52352452552652752852953053125 unmodified lines557558559560561562308 unmodified lines87187287387487587687787887988088188288388488588688788888989089189289331 unmodified lines925926927928929930931932933934480 unmodified lines"this chest was good for both of you!")),dict(letter=0, instr="Open the brown woven chest again.",narration=("The same chest again: 10 coins for you and 10 for your partner.","Each unique chest is more likely to give a certain number of coins, so it's worth paying attention.")),dict(letter=3, instr="Open the dark stone chest.",narration=("In the dark stone chest you BOTH lost 10 coins —","sometimes a chest is bad for both of you.")),35 unmodified linesd = ImageDraw.Draw(img)sprites.draw_room(d, W, H, floor_y, 80, W - 80, table_top, theme=sprites.ROOM_THEMES[htype])if not practice: # (practice has its own instruction line; this would clash with the feedback)T(d, 16, 58, f"Inside the {house_name} - Try {min(trial + 1, n_trials)} / {n_trials}",size=15, bold=True, fill=(245, 245, 245), outline=True)# practice: highlight (and the prompt names) the chest the player is told to opendirect_letter = -125 unmodified linessprites.draw_character(d, par_x, H - 12, 1, 0, **sprites.PARTNER_PAL)T(d, you_x, H - 118, "YOU", size=15, bold=True, fill=(255, 255, 255), center=True, outline=True)T(d, par_x, H - 118, "PARTNER", size=15, bold=True, fill=(255, 255, 255), center=True, outline=True)# the coins themselves are drawn by the client-side float animation (window.playCoinFloat),# which lands one at each pocket (you_x/par_x, H-74) as the persistent feedback.return img308 unmodified linesYou are an adventurer exploring a world to make some money. Inside each house are twotreasure chests — open one with its key and you'll find coins.Here's the twist: you've been matched with an **anonymous stranger** — another young person,around your age, from our community, who is **not** taking part in this study. They **won'tplay** the game themselves. As you open chests, you'll collect coins **for yourself and foryour partner** at once — so you're playing for two. Your partner only earns or loses moneyfrom **your** choices.- Some chests are more likely to give coins to **you** but not your **partner**.- Some are more likely to give coins to your **partner** but not **you**.- Some are more likely to give coins to **both** of you, some to **neither** of you.Every coin you collect **adds up across the whole game** — you won't see a running total onscreen, but they are all being counted. At the very end your coins become **real money**(**about $1 per 100 coins, up to $6**), paid to both **you** and the **other person** as abonus pocket-money payment.**Your goal: collect as many coins as you can — for both you and your partner —** by learningwhich chests are worth opening."""HOW_TO_PLAY = """31 unmodified lines("Coins turn into real money at the end (about $1 per 100 coins, up to $6), for both you ""and your partner.",True, "Correct — both you and your partner get a bonus payment based on the coins."),("Even though you don't see a running total on screen, every coin you collect still counts ""toward your final bonus — so your goal is to earn as many as you can.",True, "Correct — the coins all add up behind the scenes, for you and your partner, so keep ""collecting as many as you can."),("Each unique chest keeps its meaning no matter where it appears on the screen.",True, "Correct — each unique chest tells you what it tends to give, wherever it shows up."),("Once you enter a house, you must finish all 20 choices before leaving.",480 unmodified lines48148248348448548648735 unmodified lines52352452552652752852953025 unmodified lines556557558559560561562563308 unmodified lines87287387487587687787887988088188288388488588688788888989089189289331 unmodified lines925926927928929930480 unmodified lines"this chest was good for both of you!")),dict(letter=0, instr="Open the brown woven chest again.",narration=("The same chest again: 10 coins for you and 10 for your partner.","Each unique chest is more likely to give a certain number of coins no matter which side it appears on, so it's worth paying attention.")),dict(letter=3, instr="Open the dark stone chest.",narration=("In the dark stone chest you BOTH lost 10 coins —","sometimes a chest is bad for both of you.")),35 unmodified linesd = ImageDraw.Draw(img)sprites.draw_room(d, W, H, floor_y, 80, W - 80, table_top, theme=sprites.ROOM_THEMES[htype])T(d, 16, 58, f"Inside the {house_name} - Try {min(trial + 1, n_trials)} / {n_trials}",size=15, bold=True, fill=(245, 245, 245), outline=True)# practice: highlight (and the prompt names) the chest the player is told to opendirect_letter = -125 unmodified linessprites.draw_character(d, par_x, H - 12, 1, 0, **sprites.PARTNER_PAL)T(d, you_x, H - 118, "YOU", size=15, bold=True, fill=(255, 255, 255), center=True, outline=True)T(d, par_x, H - 118, "PARTNER", size=15, bold=True, fill=(255, 255, 255), center=True, outline=True)if practice: # a clear PRACTICE badge in the bottom-left, like the overworldT(d, 16, H - 34, "PRACTICE", size=16, bold=True, fill=(245, 230, 150), outline=True)# the coins themselves are drawn by the client-side float animation (window.playCoinFloat),# which lands one at each pocket (you_x/par_x, H-74) as the persistent feedback.return img308 unmodified linesYou are an adventurer exploring a world to make some money. Inside each house are twotreasure chests — open one with its key and you'll find coins.Here's the twist: you've been matched with an **anonymous stranger** — another young personyour age, from our community, who is **not** taking part in this study. They **won't play**the game themselves. As you open chests, you'll collect coins **for yourself and for yourpartner** at once — so you're playing for two. Your partner only earns or loses money from**your** choices.- Some chests are more likely to give coins to **you** but not your **partner**.- Some are more likely to give coins to your **partner** but not **you**.- Some are more likely to give coins to **both** of you, some to **neither** of you.Every coin you collect **adds up across the whole game**. At the very end your coins become**real money** (**about $1 per 100 coins, up to $6**), paid to both **you** and the **otherperson** as a bonus pocket-money payment.**Your goal:** open chests and learn which ones are worth your while — and collect as manycoins as you can, for both you and your partner."""HOW_TO_PLAY = """31 unmodified lines("Coins turn into real money at the end (about $1 per 100 coins, up to $6), for both you ""and your partner.",True, "Correct — both you and your partner get a bonus payment based on the coins."),("Each unique chest keeps its meaning no matter where it appears on the screen.",True, "Correct — each unique chest tells you what it tends to give, wherever it shows up."),("Once you enter a house, you must finish all 20 choices before leaving.",
210 unmodified lines211212213214215216217218321 unmodified lines540541542543544545546547548210 unmodified lines"window.showPracticeFeedback=function(l1,l2){var img=document.getElementById('stateImage');if(!img)return;"" var r=img.getBoundingClientRect();var e=document.getElementById('thpfb');"" if(!e){e=document.createElement('div');e.id='thpfb';e.className='thpfb';document.body.appendChild(e);}"" e.innerHTML='<div style=\"font-size:18px\">'+l1+'</div><div style=\"font-size:14px;margin-top:3px\">'+l2+'</div>';"" e.style.left=(r.left+r.width/2)+'px';e.style.top=(r.top+r.height*0.02)+'px';e.style.transform='translateX(-50%)';"" e.style.display='block';e.style.animation='none';void e.offsetWidth;e.style.animation='thblink .4s ease-in-out 3';};""window.hidePracticeFeedback=function(){var e=document.getElementById('thpfb');if(e)e.style.display='none';};"# chest side-swap: slide the two chests across so they look like they physically trade places.321 unmodified linesawait asyncio.sleep(2.2)match_row.clear()with match_row:ui.html(f'<div><span style="color:#27ae60;font-weight:bold">✓ Matched!</span> 'f"You're paired with <b>Partner #{partner}</b> — ""an anonymous stranger around your age.</div>")ui.timer(0.1, reveal_partner, once=True)elif page == "howto":ui.markdown("## How to play")210 unmodified lines211212213214215216217218321 unmodified lines540541542543544545546547210 unmodified lines"window.showPracticeFeedback=function(l1,l2){var img=document.getElementById('stateImage');if(!img)return;"" var r=img.getBoundingClientRect();var e=document.getElementById('thpfb');"" if(!e){e=document.createElement('div');e.id='thpfb';e.className='thpfb';document.body.appendChild(e);}"" e.innerHTML='<div style=\"font-size:16px\">'+l1+'</div><div style=\"font-size:16px;margin-top:3px\">'+l2+'</div>';"" e.style.left=(r.left+r.width/2)+'px';e.style.top=(r.top+r.height*0.15)+'px';e.style.transform='translateX(-50%)';" # below the 'Inside the ... / Try x' line" e.style.display='block';e.style.animation='none';void e.offsetWidth;e.style.animation='thblink .4s ease-in-out 3';};""window.hidePracticeFeedback=function(){var e=document.getElementById('thpfb');if(e)e.style.display='none';};"# chest side-swap: slide the two chests across so they look like they physically trade places.321 unmodified linesawait asyncio.sleep(2.2)match_row.clear()with match_row:ui.html(f'<div><span style="color:#27ae60;font-weight:bold">✓</span> 'f"You were matched with your partner (#{partner} from our community database).</div>")ui.timer(0.1, reveal_partner, once=True)elif page == "howto":ui.markdown("## How to play")