◀ VibeCruiser

rps disc sandbox

A free generative art piece — play it in your browser, no install. A zero-dependency Canvas sandbox where hundreds of rocks, papers and scissors convert each other forever — never reaching a winner.

by @connectedGraph · connectedGraph/rps-disc-sandbox on GitHubLANG HTMLHOSTED ON CONNECTEDGRAPH.GITHUB.IOUPDATED 1 Dec 2026

Made this, @connectedGraph? See how many people played it → or use email

Controls: Space · Mouse

▶ Play full screen ▲ Vote: free account with email ▲ Or sign in with GitHub

GitHub may ask you to sign in, then to let VibeCruiser “Verify your GitHub identity” and “Act on your behalf”. We only read your profile and email, and never post anything.

Open the live demo Source on GitHub

From the README

一个圆盘里同时跑着几百个石头、布、剪刀。任意两个不同类相撞,输的一方按概率变成赢的一方并弹开。 看着三类此消彼长、成团、迁徙 —— 而且永远不会分出胜负。

这大概是这个项目里唯一有点意思的部分。

朴素的石头剪刀布粒子模拟几乎总会在几十秒内变成清一色: 某一类恰好领先一点,吃掉对手后数量更多,于是吃得更快,正反馈一路滚成雪崩。 我在实现里踩了两个具体的坑,都在 调参 里写了。

现在的参数下,200 秒内三类始终共存,占比在 41/37/46 → 16/50/58 → 7/49/68 之间来回摇, 总有一方显得要赢,但总也赢不了。这个不稳定性正是画面好看的原因。

零依赖、无构建、不上传任何数据,直接开文件就行。

底部三条色带是三类实时占比,计数在转化时会跳动一下。手机上直接能玩,无需缩放。

渲染 — Canvas 2D,devicePixelRatio 上限 2 保证高分屏清晰又不至于掉帧。 三个物体都是矢量手绘:石头是按种子生成的 8 边形,带面片高光和投影; 布是带折角与文字线的纸片;剪刀是两片刀身 + 橙色手柄环 + 中轴。各自带慢速自转和落地阴影。 空间索引 — Map 做均匀网格散列。格子边长 128px,必须 ≥ 感知半径, 才能靠 3×3 邻域覆盖整个感知圈;这一步写错的话远处目标会被静默漏掉。

Read the full README on GitHub →

Built something like this? Submit your vibe — free account, takes a minute. How listing works.

More like this

Made this?

Claim it: create a free account, then press CLAIM THIS in the cruiser. Put the badge below in your README or on your demo page first; that link is how we know it's yours.

Your project is on the cruise, loaded live from your own site. Put the badge in your README or on the demo page: it shows your live play count, it links back to this page, and everyone who lands here is one click from running the real thing.

On VibeCruiser

How listing, the badge and claiming work →