앱: 멀티플레이·계정·리더보드·광고 연결 (Phase 4~7 클라이언트)

- 게스트 자동 발급, 이메일 가입/로그인(게스트 기록 이전), 닉네임 변경, 계정 삭제
- 커스텀 방 만들기/참가, 로비(호스트 규칙), 1:1·FFA 대전, 가비지 게이지·상쇄·삽입,
  상대 미니보드 탭 타겟팅, KO 피드, 관전, 리매치 투표, 재접속
- 리그 대기열·매칭·FT3/FT5·결과(TR/배치), 리더보드 4종, 프로필 전적
- AdMob(UMP 동의) 배너·결과 카드·전면(3판당 1회, 첫 판 제외), 기본은 테스트 ID
- 서버: 앱 레벨 keepalive(auto-response), KO 후 로비 갱신, 재접속 시 결과 재전송,
  x-info 헤더 ASCII 인코딩, 계정 삭제 API
- 개인정보처리방침·스토어 등록정보 갱신 (온라인·광고 반영)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-04 10:43:32 +09:00
parent 8fcef8e720
commit c05c39ff36
29 changed files with 2341 additions and 167 deletions

View File

@@ -175,3 +175,18 @@ test("보드 스냅샷 검증·중계", () => {
r.handle("a", { t: "board", grid: ".".repeat(190) + "GGGGGGGGG.", lock: true });
assert.equal(msgs(r, "b", "board").length, 1);
});
test("끝난 경기 결과는 재접속한 사람에게 다시 보낸다", () => {
const { r, clock } = mkRoom();
r.join("a"); r.join("b");
r.handle("a", { t: "rules", rules: { ft: 1 } });
startPlaying(r, clock);
r.disconnect("b");
r.handle("a", { t: "topout" }); // b 가 끊긴 사이 경기 종료 (b 승)
assert.equal(r.phase, "match_end");
r.drain();
r.join("b");
const end = msgs(r, "b", "match_end");
assert.equal(end.length, 1);
assert.equal(end[0].winner, "b");
});