File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can6C38-LKFW5Pjl.js.map
{"version":3,"file":"can6C38-LKFW5Pjl.js","sources":["../../src/exercices/can/6e/can6C38.js"],"sourcesContent":["import { randint } from '../../../modules/outils.js'\nimport { Yohaku } from '../../../lib/outils/Yohaku'\nimport Exercice from '../../deprecatedExercice.js'\nimport { setReponse } from '../../../lib/interactif/gestionInteractif.js'\nexport const titre = 'Trouver une valeur dans un Yohaku (additif)'\nexport const interactifReady = true\nexport const interactifType = 'mathLive'\n// export const amcReady = true\n// export const amcType = 'AMCNum'\nexport const dateDePublication = '10/08/2022'\nexport const dateDeModificationImportante = '16/12/2023'\n\nexport const uuid = '4e198'\nexport const ref = 'can6C38'\n/**\n * @author Jean-Claude Lhote\n * @constructor\n */\nexport default function YohakuCan6a () {\n Exercice.call(this)\n this.nbQuestions = 1\n this.nbQuestionsModifiable = false\n this.tailleDiaporama = 2\n this.nouvelleVersion = function () {\n this.autoCorrection = []\n this.listeQuestions = []\n this.listeCorrections = []\n const laCase = randint(0, 3)\n // on rempli les cases du Yohaku\n const yohaku1 = new Yohaku({ type: 'entiers', largeur: 2, hauteur: 2, taille: 2, operation: 'addition', valeurMax: 10, solution: false, cellules: [] })\n // on calcule les résultats\n yohaku1.calculeResultats()\n // On mémorise la réponse\n this.reponse = yohaku1.cellules[laCase]\n // On blanchit la case inconnue avant la représentation\n yohaku1.cellulesPreremplies = [...yohaku1.cellules.map((el, i) => i === laCase ? '' : el)]\n this.listeQuestions[0] = 'Les nombres en bout de ligne ou de colonne sont les sommes des nombres contenus dans la ligne ou la colonne.<br>'\n this.listeQuestions[0] += `Donner la valeur de la case vide.\n <br>${yohaku1.representation({ numeroExercice: this.numeroExercice, question: 0, isInteractif: this.interactif, classes: 'college6e' })}`\n yohaku1.solution = true\n this.listeCorrections[0] = `la valeur de la case vide est : ${this.reponse}<br>`\n // On remet la valeur de la case avant de représenter le tableau pour la correction\n yohaku1.cellules[laCase] = this.reponse\n const reponse = [`L${1 + Math.floor(laCase / 2)}C${1 + laCase % 2}`, { value: this.reponse }]\n setReponse(this, 0, Object.fromEntries([reponse]), { formatInteractif: 'tableauMathlive' })\n this.listeCorrections[0] += yohaku1.representation({ numeroExercice: this.numeroExercice, question: 0, isInteractif: this.interactif, classes: 'college6e' })\n this.canEnonce = this.listeQuestions[0]\n this.canReponseACompleter = ''\n }\n}\n"],"names":["titre","interactifReady","interactifType","dateDePublication","dateDeModificationImportante","uuid","ref","YohakuCan6a","Exercice","laCase","randint","yohaku1","Yohaku","el","i","reponse","setReponse"],"mappings":"6HAIY,MAACA,EAAQ,8CACRC,EAAkB,GAClBC,EAAiB,WAGjBC,EAAoB,aACpBC,EAA+B,aAE/BC,EAAO,QACPC,EAAM,UAKJ,SAASC,GAAe,CACrCC,EAAS,KAAK,IAAI,EAClB,KAAK,YAAc,EACnB,KAAK,sBAAwB,GAC7B,KAAK,gBAAkB,EACvB,KAAK,gBAAkB,UAAY,CACjC,KAAK,eAAiB,CAAE,EACxB,KAAK,eAAiB,CAAE,EACxB,KAAK,iBAAmB,CAAE,EAC1B,MAAMC,EAASC,EAAQ,EAAG,CAAC,EAErBC,EAAU,IAAIC,EAAO,CAAE,KAAM,UAAW,QAAS,EAAG,QAAS,EAAG,OAAQ,EAAG,UAAW,WAAY,UAAW,GAAI,SAAU,GAAO,SAAU,CAAA,EAAI,EAEtJD,EAAQ,iBAAkB,EAE1B,KAAK,QAAUA,EAAQ,SAASF,CAAM,EAEtCE,EAAQ,oBAAsB,CAAC,GAAGA,EAAQ,SAAS,IAAI,CAACE,EAAIC,IAAMA,IAAML,EAAS,GAAKI,CAAE,CAAC,EACzF,KAAK,eAAe,CAAC,EAAI,mHACzB,KAAK,eAAe,CAAC,GAAK;AAAA,UACpBF,EAAQ,eAAe,CAAE,eAAgB,KAAK,eAAgB,SAAU,EAAG,aAAc,KAAK,WAAY,QAAS,WAAW,CAAE,CAAC,GACvIA,EAAQ,SAAW,GACnB,KAAK,iBAAiB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