// Numbas version: exam_results_page_options {"name": "Draw some circles with Eukleides", "extensions": ["eukleides"], "custom_part_types": [], "resources": [], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Draw some circles with Eukleides", "tags": [], "metadata": {"description": "

Draws a diagram showing a randomly-chosen number of circles, packed in a box.

", "licence": "Creative Commons Attribution 4.0 International"}, "statement": "

There are {n} circles:

\n

{max_width(20,diagram)}

\n

Click \"Try another question like this one\" to see a different number of circles.

", "advice": "", "rulesets": {}, "extensions": ["eukleides"], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"n": {"name": "n", "group": "Ungrouped variables", "definition": "random(1 .. 20#1)", "description": "

The number of circles to draw

", "templateType": "randrange", "can_override": false}, "diagram": {"name": "diagram", "group": "Ungrouped variables", "definition": "eukleides(\"{n} circles\",\nlet(\ncols, ceil(sqrt(n)),\nmap(\n let(\n x, mod(i,cols),\n y, (i-x)/cols, \n p, point(x-1,y),\n [circle(p,0.4), p label(\"{i+1}\",0)]\n ),\n i,\n 0..(n-1)\n)\n))\n ", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["n", "diagram"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}]}], "contributors": [{"name": "Christian Lawson-Perfect", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/7/"}]}