Simon Willison 尝试用声音让两台手机玩静态网页乒乓球
作者公开一个通过提示构建的静态 HTML 游戏实验,用麦克风声信号同步相邻手机状态。适合作为智能体编程与原型测试案例,实验可玩性不等于成熟商用产品。
Codex 来源核对 · 按原文范围整理,保留案例及数据的适用边界。
Tool Chirp Pong — Chirp Pong is a two-player paddle game where two phones pair and exchange the ball over sound, using each device's speaker and microphone instead of Wi-Fi or Bluetooth. The page offers a duel mode that pairs two phones through a chirp handshake and a practice mode against a CPU opponent, with selectable match lengths of 7, 11, or 15 points.
Another game experiment - I wanted to see if it was feasible to have a two player game on two separate phones running in static HTML where the networking code uses chirps sent via the microphone. It seems to work!
Build a two player competitive pong like game where two players use their phones close to each other and the game state is sent via audio noises which the web microphone API can interpret - but add graphical and gameplay twists to make it a lot more fun and intertwine than pong
Claude Opus 5.5 Extra in Claude Code.
来源:Simon Willison · simonwillison.net