3장 섯다를 한게임처럼: 1구 선 하프·다이(1구 체크 없음), 예상족보, 패쪼기
- 엔진: 한게임 흐름(공개패 켬·마지막에 고르기)의 1구 첫 베팅(선)은 하프·다이만, 1구에는 체크 없음(시간 초과는 다이) - view.myReach: 다음 패로 만들 수 있는 족보(공개 정보만: 덱 구성 − 내 패 − 공개패) - 족보판 [예상족보 켬/끔]: 못 만드는 족보는 흐리게 - 패쪼기: 새로 받은 패는 뒷면, 밀어 올리면 아래부터 보이고 누르면 바로 뒤집힘, 6초 뒤 자동. 뒤집기 전에는 족보·조합을 숨김 - 도움말·규칙 화면·문서, 엔진 테스트 4개, e2e(1구 하프→콜, 패쪼기 드래그) 맞춤 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1905,10 +1905,24 @@ const PLANS: Record<string, Plan> = {
|
||||
// The others now see one face-up card of each player.
|
||||
await pages[0]!.waitForFunction(() => document.querySelectorAll('.sd-seat .sd-cards img, .sd-seat .sd-cards svg').length > 0, null, { timeout: 5000 }).catch(() => {});
|
||||
await pages[0]!.screenshot({ path: join(SHOTS, 'seotda3-open-pc.png') });
|
||||
// 1구 (한게임): 선은 하프만(다이 말고), 나머지는 콜. 2구는 모두 체크.
|
||||
await pressActions(pages, /^하프/, 1);
|
||||
await pressActions(pages, /^콜/, 2);
|
||||
for (let n = 0; n < 40 && !(await pages[0]!.getByRole('button', { name: /정하기$|두 장을 고르세요/ }).count()) && !(await pages[0]!.getByText('이번 판 결과').count()); n++) {
|
||||
// Nobody raises, so every action is a 체크 (콜 stays disabled and would hide it from pressActions).
|
||||
await pressActions(pages, /^체크/, 1).catch(() => {});
|
||||
}
|
||||
// 패쪼기: the third card comes face down; host drags it up halfway first (screenshot), then everyone turns it.
|
||||
const sq = (p: Page) => p.getByRole('button', { name: /새로 받은 패 확인하기/ });
|
||||
if (await sq(pages[0]!).count()) {
|
||||
const box = (await sq(pages[0]!).first().boundingBox())!;
|
||||
await pages[0]!.mouse.move(box.x + box.width / 2, box.y + box.height - 10);
|
||||
await pages[0]!.mouse.down();
|
||||
await pages[0]!.mouse.move(box.x + box.width / 2, box.y + box.height * 0.75, { steps: 4 });
|
||||
await pages[0]!.screenshot({ path: join(SHOTS, 'seotda3-squeeze-pc.png') });
|
||||
await pages[0]!.mouse.move(box.x + box.width / 2, box.y - 10, { steps: 4 });
|
||||
await pages[0]!.mouse.up();
|
||||
}
|
||||
for (const p of pages) while (await sq(p).count()) await sq(p).first().click();
|
||||
await pages[0]!.screenshot({ path: join(SHOTS, 'seotda3-choose-pc.png') });
|
||||
if (await pages[0]!.getByText('자리 비움').count()) throw new Error('someone timed out (the plan should act for everybody)');
|
||||
for (const p of pages) {
|
||||
|
||||
Reference in New Issue
Block a user