원카드 화면: 따로 누르는 원카드 버튼(잡기 N초 세기), 카드 먹을 때 더미에서 한 장씩 날아가고 장마다 소리, 큰 벌칙은 판 흔들림·빨간 번쩍임, 공격 누적 숫자 세어 올라가기, 나눠 주기·섞기·내기·무늬/색 바꾸기 효과, 도움말·규칙·문서·E2E
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,6 +47,17 @@ test('원카드: 7로 정한 무늬, 원카드 잡기', () => {
|
||||
state.hands[other] = [state.hands[other][0]];
|
||||
expect(helpNow(view(state, other), other, users)).toContain('[원카드!] 버튼을 빨리 눌러요');
|
||||
expect(helpNow(view(state, cur), cur, users)).toContain(`${nickOf(other)}님이 1장 남았는데`);
|
||||
expect(helpNow(view(state, cur), cur, users)).toContain('2초가 지나면 [원카드!]를 먼저 눌러 잡을 수 있어요');
|
||||
});
|
||||
|
||||
test('원카드: 끝에서 두 번째 카드를 낼 때는 원카드를 따로 누르라고 안내', () => {
|
||||
const { state } = setupGame('one-card', 3);
|
||||
const cur = state.current as string;
|
||||
state.discard.push({ id: 'H8', kind: 'std', suit: 'H', rank: 8 });
|
||||
state.hands[cur] = [{ id: 'H9', kind: 'std', suit: 'H', rank: 9 }, { id: 'C5', kind: 'std', suit: 'C', rank: 5 }];
|
||||
const t = helpNow(view(state, cur), cur, users);
|
||||
expect(t).toContain('카드를 낸 다음 동그란 [원카드!] 버튼을 따로 꼭 눌러요');
|
||||
expect(t).not.toContain('내면서');
|
||||
});
|
||||
|
||||
test('색깔 카드: 색 바꾸기+4 의심하기', () => {
|
||||
@@ -68,7 +79,9 @@ test('원카드: 끝나면 결과 안내', () => {
|
||||
let { state: s } = setupGame('one-card', 2, { handSize: 5 });
|
||||
for (let i = 0; i < 2000 && !def.result(s); i++) {
|
||||
const actor = def.activePlayers(s)[0]!;
|
||||
s = applyAction('one-card', s, actor, def.legalActions!(s, actor)[0]);
|
||||
// The clock here stands still, so a catch (only after the protection time) is never allowed: skip it.
|
||||
const legal = def.legalActions!(s, actor).filter((a) => def.validate(s, actor, a, { now: 1_700_000_100_000 }).ok);
|
||||
s = applyAction('one-card', s, actor, legal[0]);
|
||||
}
|
||||
expect(def.result(s)).toBeTruthy();
|
||||
expect(helpNow(view(s, 'A'), 'A', usersOf(['A', 'B']))).toContain('게임이 끝났어요');
|
||||
|
||||
Reference in New Issue
Block a user