import type { Stage } from "../types" const TABLAS = [2, 5, 10] as const const exercises: any[] = [] let idx = 0 for (const t of TABLAS) { for (let m = 1; m <= 10; m++) { const correct = t * m exercises.push({ id: `fra5-tabla${t}-${m}`, stage: 5, skillCode: `tabla-${t}-x-${m}`, type: "eleccion", prerequisites: idx === 0 ? [] : [exercises[idx - 1]?.id].filter(Boolean), content: { instruction: `¿Cuánto es ${t} × ${m}?`, audioText: `${t} por ${m} es ${correct}`, emoji: "🔢", options: [ { label: String(correct), correct: true, id: String(correct) }, { label: String(correct + 1), correct: false, id: `w1-${idx}` }, { label: String(correct + t), correct: false, id: `w2-${idx}` }, ].sort(() => Math.random() - 0.5), }, functionalContext: `Memorizar tabla del ${t} con método Montessori (tabla de Pythagore).`, errorType: "confusion-letra", }) idx++ } } const stage: Stage = { id: 5, name: "Tablas de multiplicar (2, 5, 10)", description: "Memorizar las tablas de multiplicar del 2, 5 y 10 con material Montessori (tabla de Pythagore, cuentas doradas).", exercises, } export default stage