// Numbas version: finer_feedback_settings {"name": "Matrix grid lines", "extensions": [], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "feedback": {"showactualmarkwhen": "always", "showtotalmarkwhen": "always", "showanswerstatewhen": "always", "showpartfeedbackmessageswhen": "always", "allowrevealanswer": true, "showexpectedanswerswhen": "inreview", "showadvicewhen": "inreview"}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Matrix grid lines", "tags": [], "metadata": {"description": "

Demonstrates the new option to add vertical and horizontal grid lines to matrix entry parts.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "", "advice": "", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true, "j": false}, "constants": [], "variables": {"pre_filled_cells": {"name": "pre_filled_cells", "group": "Ungrouped variables", "definition": "[\n[\" \",\" \",\" \",\" \",\" \",\"7\",\"9\",\"5\",\" \"],\n[\" \",\" \",\" \",\" \",\"3\",\" \",\" \",\" \",\"8\"],\n[\"2\",\" \",\"5\",\"8\",\" \",\" \",\"6\",\" \",\"7\"],\n[\" \",\"8\",\" \",\" \",\"7\",\" \",\" \",\"6\",\"3\"],\n[\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \",\" \"],\n[\"3\",\"4\",\" \",\" \",\"2\",\" \",\" \",\"7\",\" \"],\n[\"9\",\" \",\"1\",\" \",\" \",\"8\",\"5\",\" \",\"4\"],\n[\"6\",\" \",\" \",\" \",\"5\",\" \",\" \",\" \",\" \"],\n[\" \",\"5\",\"8\",\"7\",\" \",\" \",\" \",\" \",\" \"],\n]", "description": "", "templateType": "anything", "can_override": false}, "solved_sudoku": {"name": "solved_sudoku", "group": "Ungrouped variables", "definition": "matrix(\n [8,3,4,6,1,7,9,5,2],\n [7,9,6,2,3,5,1,4,8],\n [2,1,5,8,4,9,6,3,7],\n [5,8,2,9,7,1,4,6,3],\n [1,6,7,4,8,3,2,9,5],\n [3,4,9,5,2,6,8,7,1],\n [9,7,1,3,6,8,5,2,4],\n [6,2,3,1,5,4,7,8,9],\n [4,5,8,7,9,2,3,1,6]\n)", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["pre_filled_cells", "solved_sudoku"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

In this part, there is a vertical line before the last column. Try changing the number of columns.

", "correctAnswer": "id(2)", "correctAnswerFractions": false, "numRows": "3", "numColumns": "2", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "", "gridlines": "beforeLastColumn", "gridlinesCustomRows": "repeat(false, numrows-1)", "gridlinesCustomColumns": "repeat(false, numcolumns-1)"}, {"type": "matrix", "useCustomName": false, "customName": "", "marks": 1, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "adaptiveMarkingUseCondition": "", "adaptiveMarkingNotUsedMessage": "", "exploreObjective": null, "prompt": "

In this part, custom gridlines expressions put vertical and horizontal lines dividing the grid into 3×3 blocks. It looks a bit like a Sudoku, don't you think?

", "correctAnswer": "solved_sudoku", "correctAnswerFractions": false, "numRows": "9", "numColumns": "9", "allowResize": true, "tolerance": 0, "markPerCell": false, "allowFractions": false, "minColumns": 1, "maxColumns": 0, "minRows": 1, "maxRows": 0, "prefilledCells": "pre_filled_cells", "gridlines": "custom", "gridlinesCustomRows": "mod(i,3) = 2 for: i of: 0..(numrows-1)", "gridlinesCustomColumns": "mod(i,3) = 2 for: i of: 0..(numcolumns-1)"}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "showAllParts": false, "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://clppc.local:8000/accounts/profile/1/"}], "resources": []}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}, {"name": "Christian Lawson-Perfect", "profile_url": "http://clppc.local:8000/accounts/profile/1/"}]}