尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证Fold a toy protein on a grid to its lowest energy: the HP lattice model as a smooth, single-file browser game.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗A small browser game about how proteins fold. Fold a toy amino-acid chain on a grid until it reaches its lowest energy. The rules are the HP lattice model: amber beads are water-fearing, blue rings are water-loving.
▶ Play it: https://kraewon7422.github.io/protein-origami/protein-origami.html
One HTML file, no dependencies, no build step. A Korean guide follows the English one below.
I'm learning bioinformatics, and looking at protein structures in PyMOL made me wonder how a chain of amino acids ends up in that shape at all. I thought a game that lets me fold one myself would be a fun way to find out. The HP model is the simplest version of that question: hide the water-fearing parts inside, and see how hard it is to find the best fold.
Open protein-origami.html in any modern browser (desktop or phone).
Z undo · R reset · H hint · L levels · N next level · Esc close| # | Level | Beads | Target | Source of the target |
|---|---|---|---|---|
| 1–6 | warm-ups | 4–14 | −1 … −6 | exact: exhaustive search, checked by the built-in tests |
| 7 | Benchmark 20 | 20 | −9 | Unger & Moult 1993 benchmark set (best known) |
| 8 | Benchmark 24 | 24 | −9 | 〃 |
| 9 | Benchmark 25 | 25 | −8 | 〃 |
| 10 | Benchmark 36 | 36 | −14 | 〃 |
| 11 | Benchmark 48 | 48 | −23 | 〃 |
The benchmark targets are the best energies reported in the literature. While developing, a simulated-annealing search using exactly the game's move set reached every one of them, so each target is reachable with in-game moves. The last two are hard by hand.
Any H/P chain of 4–48 beads can be opened from a link:
protein-origami.html?seq=HPPHHPHPPH&name=My%20chain
It loads as an extra "Imported" level and is never saved over your progress. For chains of up to 14 beads the goal is the exact optimum (exhaustive search). For longer chains it is the best fold a short, seeded simulated-annealing search finds in the page, shown as "computer's best", so you can try to beat it. Codon Forge uses this to send the proteins you build there.
Beads ease to their cells with spring physics, pivots travel along true circular arcs, and the backbone is
drawn as one smooth curve. Contacts fade in as a dotted amber glow with a ring pulse. The camera eases to keep
the fold framed, and the energy readout counts up or down instead of jumping. Rendering uses Canvas 2D with
requestAnimationFrame, and animations respect prefers-reduced-motion for the UI panels.
Append ?test=1 to the URL. 21 tests run and the results appear on screen and in the console: energy rules,
validity checks, 14 000 random pull moves staying valid, pivot collisions, exact optima for the warm-up levels,
the hint search, undo, and the ?seq= link (parsing and the goal search).
protein-origami.html: the whole game (core logic in <script id="core">, then UI)README.md, LICENSE (MIT)단백질이 접히는 원리를 다룬 작은 브라우저 게임입니다. 격자 위의 장난감 아미노산 사슬을 접어서 에너지를 가장 낮게 만드는 것이 목표입니다. 규칙은 HP 격자 모델을 따릅니다. 주황색 구슬은 물을 싫어하는(소수성, H) 아미노산이고, 파란 고리는 물을 좋아하는(친수성, P) 아미노산입니다.
HTML 파일 하나로 되어 있고 설치나 빌드가 필요 없습니다.
생물정보학을 공부하면서 PyMOL로 단백질 구조를 보다 보니, 아미노산 사슬이 애초에 어떻게 그런 모양이 되는지 궁금해졌습니다. 직접 접어 볼 수 있는 게임이 있으면 재미있게 알아갈 수 있을 것 같아서 만들었습니다. HP 모델은 그 질문을 가장 단순하게 만든 버전입니다. 물을 싫어하는 부분을 안쪽에 숨기면서, 가장 좋은 접힘을 찾는 일이 얼마나 어려운지 직접 느껴 볼 수 있습니다.
protein-origami.html을 브라우저에서 열면 됩니다(PC, 휴대폰 모두 가능).
Z 되돌리기 · R 처음으로 · H 힌트 · L 레벨 · N 다음 레벨 · Esc 닫기protein-origami.html?seq=HPPHHPHPPH&name=이름 (H/P 4–48개).
"Imported" 단계로 열리고 진행 기록은 바뀌지 않습니다. 14개 이하는 정확한 최솟값, 그보다 길면 페이지 안에서
짧게 돌린 담금질 탐색이 찾은 값("computer's best")이 목표입니다. Codon Forge가 이 방식으로 단백질을 보냅니다.주소 뒤에 ?test=1을 붙이면 21개의 테스트가 실행되고 결과가 화면과 콘솔에 표시됩니다.
MIT