컴퓨터 난이도 1~60단계·방장 선택·판마다 변화·운, 공정성 확인에 표기, 업데이트 알림 팝업
- 난이도 1~60(쉬움 1~20·보통 21~40·어려움 41~60): 넣을 때 랜덤, 방장이 대기실에서 [랜덤][쉬움][보통][어려움] 선택(botLevel) → 범위 안 무작위 - 다음 판마다 -2~+2, 처음 단계 ±5·같은 범위 안(drift); 말투는 처음 단계(>30 존댓말) - humanBest 확률을 단계별로 보간(BOT_PLAY_ANCHORS: 1·10·30·50·60) - 운(-1~+1): 카드·주사위 게임에서 시작 전에 시드 후보 1~5개를 작업 스레드에서 끝까지 둬 보고 운에 맞는 것을 고름(luck.ts, luck-worker.ts). 해시 공개는 그대로 - 결과 화면 공정성 확인에 컴퓨터별 단계·운, 섞어 본 후보 수 - 업데이트 알림: 빌드 ID meta + /api/version + welcome.build → 상단 팝업 [지금 새로고침하기] [✕] - 문서 03·04 §5.1·06 §12·07 §11.1·09 §9.1, 테스트(bot-level.room, luck, version, e2e bots·pwa) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -307,6 +307,16 @@ label.field {
|
||||
background: var(--primary-soft);
|
||||
font-weight: 700;
|
||||
}
|
||||
/* Computer difficulty in the lobby (docs/06 §12): four even pills. */
|
||||
.segmented.bot-level {
|
||||
flex-wrap: nowrap;
|
||||
gap: 6px;
|
||||
}
|
||||
.segmented.bot-level button {
|
||||
flex: 1;
|
||||
padding: 0 6px;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
/* ---------- top bar ---------- */
|
||||
.topbar {
|
||||
@@ -368,6 +378,54 @@ label.field {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* "업데이트 내용이 있습니다" (docs/07 §11.1): a card at the top, above everything but the connection banner. */
|
||||
.update-banner {
|
||||
position: fixed;
|
||||
top: calc(8px + env(safe-area-inset-top));
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
z-index: 70;
|
||||
width: min(94vw, 480px);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 10px;
|
||||
background: var(--surface);
|
||||
color: var(--text);
|
||||
border: 2px solid var(--primary);
|
||||
border-radius: var(--radius);
|
||||
box-shadow: var(--shadow);
|
||||
padding: 10px 8px 10px 16px;
|
||||
animation: update-in 0.2s ease;
|
||||
}
|
||||
@keyframes update-in {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translate(-50%, -8px);
|
||||
}
|
||||
}
|
||||
.update-banner .update-text {
|
||||
flex: 1;
|
||||
min-width: 0;
|
||||
font-weight: 700;
|
||||
}
|
||||
.update-banner .btn {
|
||||
white-space: nowrap;
|
||||
}
|
||||
.update-close {
|
||||
flex: none;
|
||||
width: var(--tap);
|
||||
height: var(--tap);
|
||||
border: 0;
|
||||
background: transparent;
|
||||
color: var(--text-sub);
|
||||
font-size: 1.2rem;
|
||||
cursor: pointer;
|
||||
border-radius: var(--radius);
|
||||
}
|
||||
.update-close:hover {
|
||||
background: var(--surface-2);
|
||||
}
|
||||
|
||||
.toasts {
|
||||
position: fixed;
|
||||
top: calc(var(--site-h) + env(safe-area-inset-top));
|
||||
|
||||
Reference in New Issue
Block a user