HEX
Server: Apache
System: Linux vps.mmtprep.com 4.18.0-477.21.1.el8_8.x86_64 #1 SMP Thu Aug 10 13:51:50 EDT 2023 x86_64
User: mmtprep (1001)
PHP: 8.1.34
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/mmtprep/public_html/mathzen.mmtprep.com/assets/can6C39-z2eRTUod.js.map
{"version":3,"file":"can6C39-z2eRTUod.js","sources":["../../src/exercices/can/6e/can6C39.js"],"sourcesContent":["import { randint } from '../../../modules/outils.js'\nimport { Yohaku } from '../../../lib/outils/Yohaku'\nimport Exercice from '../../Exercice.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 = '892f2'\nexport const ref = 'can6C39'\n/**\n * @author Jean-Claude Lhote\n * @constructor\n */\nexport default function YohakuCan6b () {\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    const yohaku1 = new Yohaku({ type: 'entiers', largeur: 2, hauteur: 2, taille: 2, operation: 'multiplication', 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","YohakuCan6b","Exercice","laCase","randint","yohaku1","Yohaku","el","i","reponse","setReponse"],"mappings":"yKAIY,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,EACrBC,EAAU,IAAIC,EAAO,CAAE,KAAM,UAAW,QAAS,EAAG,QAAS,EAAG,OAAQ,EAAG,UAAW,iBAAkB,UAAW,GAAI,SAAU,GAAO,SAAU,CAAA,EAAI,EAE5JD,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,KA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