import type { Stage } from "../types" const TABLAS = [3, 4, 6, 7, 8, 9] 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: `fra6-tabla${t}-${m}`, stage: 6, 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 + t), correct: false, id: `w1-${idx}` }, { label: String(Math.max(correct - 1, 1)), correct: false, id: `w2-${idx}` }, ].sort(() => Math.random() - 0.5), }, functionalContext: `Memorizar tabla del ${t} con método Montessori (tabla perforada, material de cuentas).`, errorType: "confusion-letra", }) idx++ } } const stage: Stage = { id: 6, name: "Tablas de multiplicar (3, 4, 6, 7, 8, 9)", description: "Completar todas las tablas de multiplicar restantes con método Montessori.", exercises, } export default stage