Skip to main content

About the project

Your phone is a laser pointer. Trace the shape in the air without seeing your line and let Snowflake be the judge.

What it does

SkySketch is a party game for any number of players. A shape appears on the big screen, everyone scans a QR code and their phone becomes a laser pointer. Hold your thumb down to draw in the air, lift it to stop. You can’t see your line, so you have to trust your hand.

Snowflake scores every drawing with geometry, ranks the room and guesses what you actually drew (“Snowflake thinks you drew a potato”). Drawings are revealed worst to best, then everyone’s lines are blended into one crowd drawing, then a podium and live Snowflake stats like steadiest hands and most improved. A practice round shows your line live so nobody gets lost.

How we built it

  • Phones: a plain web page, no app or account. We read the phone’s orientation sensors in the browser and turn the direction the phone points into a dot.
  • Server: Node.js with socket.io for live rooms, rounds and timers, exposed over HTTPS with a Cloudflare tunnel.
  • Snowflake: every drawing goes into tables. One SQL query scores the whole room using Chamfer distance (did you stay on the line and did you cover the shape), compares each drawing with a library of 17 shapes to guess what it looks like and ranks players with window functions. About 278,000 distance checks per drawing in around 2 seconds.
  • More Snowflake SQL: percentiles against every past drawing, ghost players replayed from real stored drawings (picked with PERCENT_RANK), a crowd drawing that blends everyone’s line and end screen stats (steadiest hands from tremor with LAG, most improved, most mistaken for).
  • The same maths runs locally as a fallback and we tested it matches Snowflake exactly.
  • Built in JetBrains Air with several AI agents working in parallel, each in its own folder and branch from one shared plan in the repo.

Challenges

  • Phones can’t track their position in space because the accelerometer drifts within a second or two, so we point by rotation instead, which doesn’t drift.
  • A sensor glitch when the phone is held upright caused sudden jumps, so we added a spike filter.
  • A perfect circle scored anywhere from 86 to 100 depending on where you started. Using 256 points per target fixed it.
  • Snowflake’s AI functions are blocked on trial accounts, so we moved all the smart work into SQL and wrote rule-based jokes from each player’s stats.

What’s next

Smoother pointing with full sensor fusion, a team mode, letting a judge draw a shape for the room to trace and using the steadiness score for rehab and fine motor training.

Built with

snowflakenode.jsjavascriptsocket.io

AI tools

Coded withCodexAntigravityGemini 4 NeonGemini 4 ArgonClaude Opus 5.5Claude Sonnet 5.5GPT-6.2 SolGPT-6.2 AstraClaude Code

Prize Categories Entered

  • SSnowflake

    Best Use of Snowflake

    Submitted
  • Event prize

    Retro Remix

    Submitted