2048-web-development
Implement or review the 2048 browser client, including its rules engine, responsive UI, accessibility, PWA metadata, screenshots, or SEO.
- License 许可
- MIT
- 最近更新
- 2026-09-28
- Stars
- ★ 22
- Forks
- 14
01 前言 Front Matter
- name
- 2048-web-development
- description
- Implement or review the 2048 browser client, including its rules engine, responsive UI, accessibility, PWA metadata, screenshots, or SEO.
02 资源文件 2
- 参考文档agents/openai.yaml236 B
- 参考文档references/detailed-guide.md15.8 KB
03 SKILL.md 正文
2048 web development
Read AGENTS.md and docs/architecture.md. Keep rules in Web-Version/game-engine.js deterministic and DOM/storage concerns in Web-Version/script.js. The app must remain static and work beneath the GitHub Pages /2048-Game/ base path.
For controls, use inline SVG with a viewBox, center it through layout, and put the accessible name on the button. Preserve keyboard arrows, WASD, touch swipes, mobile direction buttons, undo, restart confirmation, state recovery, win continuation, and game-over restart.
A board swipe must not scroll the page. The board sets touch-action: none, html/body set overscroll-behavior: none, and a non-passive touchmove listener scoped to the board calls preventDefault() — the other touch listeners are passive and cannot. Keep the touchcancel handler that clears the start point, and keep scrolling working for gestures that begin anywhere else.
When changing public content or routes, update canonical/social metadata, JSON-LD, sitemap, robots, manifest, and llms*.txt where relevant. Do not add claims or structured data that are not visible and true on the page.
Run make check and make test-web. Optional cloud work lives in Web-Version/cloud.js and account.js — keep play local-first and see docs/backend.md. For visible changes, run make screenshots-web and inspect desktop and mobile gameplay, restart, win, loss, About, and cloud surfaces (guest banner, auth dialogs, leaderboard, account).
04 同仓库更多 Skills
2048-web-development
Implement or review the 2048 browser client, responsive UI, accessibility, PWA metadata, screenshots, or SEO.
2048-release-readiness
Verify tests, builds, screenshots, metadata, documentation, and release readiness for all 2048 clients.
2048-ios-development
Implement or review the SwiftUI 2048 client, ViewModel, persistence, accessibility, tests, or simulator flows.
2048-cross-platform-parity
Coordinate behavior and UX changes across the web, iOS, and Android 2048 clients.
2048-android-development
Implement or review the Compose 2048 client, ViewModel, persistence, Gradle build, or emulator flows.
2048-release-readiness
Perform final release-readiness validation for the 2048 repository, including tests, builds, screenshots, metadata, documentation, and a scoped findings report.