feat(game): 웹 게임 아케이드 #23 — KMP 결정적 코어 + commerce:app 폴드#7
Open
1989v wants to merge 2 commits into
Open
Conversation
- game:sim (KMP jvm+js): 정수 결정적 엔진(mulberry32 PRNG·고정 timestep·SimRunner) + Snake.
같은 코어를 브라우저(플레이)와 commerce:app JVM(Tier B 리플레이)이 공유.
- game:domain: 백엔드 도메인 + 포트 + Tier A(ScorePlausibility)·Tier B(ReplayVerifier).
- game:feature: Redis 전용 인프라(세션·리플레이·리더보드 ZSET·플레이어·데일리) + HMAC 토큰
+ 제출 오케스트레이션(Tier A→잠정등재→상위N Tier B) + REST. commerce:app 폴드(추가 프로세스 0).
- game:web (Kotlin/JS): game:sim js 코어 소비 canvas Snake 클라 → game.js 번들.
- 빌드: 루트 subprojects{} 에서 KMP 모듈 카브아웃 + 카탈로그 kotlin-multiplatform.
- 검증: 15 테스트(sim 5·domain 5·feature 4·commerce 컨텍스트 로드 1) green.
영속은 MVP Redis 전용(내구성 MySQL 후속). ADR-0058 commerce:app 폴드.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
- 게이트웨이: /api/v1/game/** → commerce:8085 (게스트 공개, app-level 닉네임 게이트) - 정적 서빙: game:web 번들(game.js + index.html)을 commerce:app static/game/ 으로 패키징 → /game/ 서빙 - 라이브 E2E(game:feature): testcontainers Redis + 임베디드 Tomcat + JDK HttpClient · 세션 시작→결정적 플레이→제출→Tier A→Redis ZSET 리더보드→in-JVM Tier B 리플레이→CONFIRMED #1 · 같은 리플레이 점수 위조 → Tier B REJECTED (tests=2 green) Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
e934ec1 to
21864fa
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
웹 게임 아케이드 (#23) — 첫 수직 슬라이스 (Snake)
로그인 없이 즐기는 캐주얼 게임을 commerce 모듈러 모놀리스에 폴드. 핵심은 랭킹 무결성: 같은 결정적 코어가 브라우저(플레이)와 서버(Tier B 리플레이 검증)에서 동일 실행되어 점수 위조를 잡는다.
모듈 (5 신규 + commerce:app 폴드)
game:sim(KMP jvm+js): 정수 결정적 엔진(mulberry32 PRNG·고정 timestep·SimRunner) + Snake. 같은 코어를 브라우저와 commerce:app JVM 이 공유.game:domain: 도메인 + 포트 + Tier A(ScorePlausibility)·Tier B(ReplayVerifier).game:feature: Redis 전용(세션·리플레이·리더보드 ZSET·플레이어·데일리) + HMAC 토큰 + 제출 오케스트레이션 + REST. commerce:app 폴드(추가 상시 프로세스 0, Tier B in-JVM).game:web(Kotlin/JS): game:sim js 코어 소비 canvas 클라 → game.js 번들.서빙
/api/v1/game/**→ commerce:8085 (게스트 공개)static/game/패키징 →/game/검증 (17 테스트 green)
sim 5 · domain 5 · feature 4 · 라이브 E2E 2(testcontainers Redis + 실 HTTP: 정직→CONFIRMED #1, 위조→Tier B REJECTED) · commerce 전체 컨텍스트 로드 1. 실 브라우저 플레이로도 확인(데일리 챌린지 포함).
설계 결정 (PRD #23 대비)
잔여 (후속)
실 브라우저 정식 배포 · 2번째 게임 · 내구성 MySQL · 봇 입력타이밍 이상탐지 · FE 분리 배포(ingress).
PRD:
ideabank/docs/23-web-game-arcade.md🤖 Generated with Claude Code