/** 사과 게임 30초 규칙 요약 (docs/07 §5). Simple redraws of the board apples. */
import type { ReactNode } from 'react';
import type { QuickCard } from '../types';
/** One apple with its number, centred at (x, y), about 26 units wide. */
function Apple({ x, y, n, dim = false }: { x: number; y: number; n: number; dim?: boolean }) {
return (
{n}
);
}
function Frame({ children }: { children: ReactNode }) {
return (
);
}
const ROW1 = [3, 7, 5, 2, 8, 1, 6];
const ROW2 = [4, 1, 5, 9, 2, 2, 6];
const ROW3 = [6, 2, 8, 1, 3, 9, 4];
function Grid({ gone = [] as number[] }) {
return (
<>
{[ROW1, ROW2, ROW3].map((row, r) =>
row.map((n, c) => ),
)}
>
);
}
export const quickStart: QuickCard[] = [
{
pic: (
),
alt: '숫자 1부터 9가 적힌 빨간 사과가 줄지어 놓인 판이에요',
title: '모두 같은 판을 풀어요',
text: '숫자가 적힌 사과 판이 나와요. 모두 똑같은 판을 각자 자기 화면에서 동시에 풀어요.',
},
{
pic: (
3+7=10!
),
alt: '3과 7이 적힌 사과 두 개를 초록 네모로 묶은 모습이에요. 합이 10이에요',
title: '합이 10이면 사라져요',
text: '사과를 직사각형으로 드래그해서 숫자 합이 딱 10이면 손을 떼요. 사과가 사라지고 개수만큼 점수예요.',
},
{
pic: (
⏱ 1:42
),
alt: '몇 개의 사과가 지워져 흐려졌고, 오른쪽 위에 남은 시간 1분 42초가 보여요',
title: '2분 동안 많이 지우기',
text: '빈 칸은 합에 안 들어가요. 시간이 끝났을 때 사과를 가장 많이 지운 사람이 이겨요.',
},
];