MeYay AI

Four in a Row

Two players take turns dropping pieces until one lines up four.

V2 · 0:10 demoPlay

Full screenV2 · 11 KB · one HTML file

Prompt

Build a local two-player2 Who it’s for four-in-a-row game1 What it does on a 7 by 6 board4 What must happen, with turn indicators, win detection and a new-game button4 What must happen.

Exactly as it was typed.

  1. What it doesWhat it is.
  2. Who it’s forWho plays: two people on one screen.
  3. How it should feelThis prompt leaves “how it should feel” to the AI.
  4. What must happenThe size of the board, said in numbers. The three things it must always do.

Use this idea

What this teaches

Say who plays, on what board, and what the screen must always show.

  • "local two-player" means one screen, taking turns: no accounts and no network.
  • "turn indicators, win detection and a new-game button" lists what the screen must always show.

Changes

Highlight the winning line and keep a match score.

Change request · V1 → V2

BeforeAfter

What changed

  • The four pieces that win are highlighted.
  • A match score for both players counts the wins across games.

What stayed: The board, the turns and New Game work as before.

Use this change

Try a change

Each one starts your own draft in the Studio. Nothing is built until you press Build.

How it was made

  • V1 Built on Oct 14, 2026 · Direct · Verified on the first try · 292 s · Tested on desktop and phone · 1 AI Credit
  • V2 Changed on Oct 14, 2026 · Verified on the first try · 58 s · Tested on desktop and phone · one change, no AI Credits

Known limitations

  • Both players share one screen; it cannot be played across two devices.
  • The match score is lost when the page is closed.
  • After each move the keyboard focus leaves the column buttons; press Tab to come back.
  • On a phone the column buttons are 34 pixels tall, smaller than they should be.

More like this

Use this idea