// Numbas version: exam_results_page_options {"name": "Pok\u00e9mon Go - Best type to defeat an opponent", "extensions": [], "custom_part_types": [], "resources": [["question-resources/GO_Normal.png", "/srv/numbas/media/question-resources/GO_Normal.png"], ["question-resources/GO_Dark.png", "/srv/numbas/media/question-resources/GO_Dark.png"], ["question-resources/GO_Fairy.png", "/srv/numbas/media/question-resources/GO_Fairy.png"], ["question-resources/GO_Dragon.png", "/srv/numbas/media/question-resources/GO_Dragon.png"], ["question-resources/GO_Ice.png", "/srv/numbas/media/question-resources/GO_Ice.png"], ["question-resources/GO_Psychic.png", "/srv/numbas/media/question-resources/GO_Psychic.png"], ["question-resources/GO_Electric.png", "/srv/numbas/media/question-resources/GO_Electric.png"], ["question-resources/GO_Grass.png", "/srv/numbas/media/question-resources/GO_Grass.png"], ["question-resources/GO_Water.png", "/srv/numbas/media/question-resources/GO_Water.png"], ["question-resources/GO_Fire.png", "/srv/numbas/media/question-resources/GO_Fire.png"], ["question-resources/GO_Steel.png", "/srv/numbas/media/question-resources/GO_Steel.png"], ["question-resources/GO_Ghost.png", "/srv/numbas/media/question-resources/GO_Ghost.png"], ["question-resources/GO_Bug.png", "/srv/numbas/media/question-resources/GO_Bug.png"], ["question-resources/GO_Rock.png", "/srv/numbas/media/question-resources/GO_Rock.png"], ["question-resources/GO_Ground.png", "/srv/numbas/media/question-resources/GO_Ground.png"], ["question-resources/GO_Poison.png", "/srv/numbas/media/question-resources/GO_Poison.png"], ["question-resources/GO_Flying.png", "/srv/numbas/media/question-resources/GO_Flying.png"], ["question-resources/GO_Fighting.png", "/srv/numbas/media/question-resources/GO_Fighting.png"]], "navigation": {"allowregen": true, "showfrontpage": false, "preventleave": false, "typeendtoleave": false}, "question_groups": [{"pickingStrategy": "all-ordered", "questions": [{"name": "Pok\u00e9mon Go - Best type to defeat an opponent", "tags": [], "metadata": {"description": "

Out of three options, you need to choose the best pokemon type to use to defeat a given pokemon type.

\n

\n

Info is taken from https://www.eurogamer.net/articles/2018-12-21-pokemon-go-type-chart-effectiveness-weaknesses  

\n

Icons are taken from https://bulbapedia.bulbagarden.net/wiki/Main_Page

\n

", "licence": "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International"}, "statement": "

You need to battle against {a_or_an} {enemy} type {image('resources/question-resources/GO_'+capitalise(enemy)+'.png')} Pokémon.  

", "advice": "

The {enemy} type Pokémon is

\n", "rulesets": {}, "extensions": [], "builtin_constants": {"e": true, "pi,\u03c0": true, "i": true}, "constants": [], "variables": {"pokemon_list": {"name": "pokemon_list", "group": "Ungrouped variables", "definition": "[\n[\"Normal\",[\"Ghost\"], [\"Fighting\"], [\"Normal\",\"Flying\", \"Poison\", \"Ground\", \"Rock\", \"Bug\",\"Steel\",\"Fire\",\"Water\",\"Grass\",\"Electric\",\"Psychic\",\"Ice\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Fighting\", [\"Rock\", \"Bug\", \"Dark\"],[\"Flying\", \"Psychic\", \"Fairy\"],[\"Normal\",\"Fighting\", \"Poison\", \"Ground\", \"Ghost\",\"Steel\",\"Fire\",\"Water\",\"Grass\",\"Electric\",\"Ice\",\"Dragon\"]],\n[\"Flying\", [\"Fighting\", \"Ground\", \"Bug\", \"Grass\"],[\"Rock\", \"Electric\", \"Ice\"],[\"Normal\", \"Flying\", \"Poison\", \"Ghost\",\"Steel\",\"Fire\",\"Water\",\"Psychic\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Poison\", [\"Fighting\", \"Poison\", \"Grass\", \"Fairy\"], [\"Ground\", \"Psychic\"],[\"Normal\", \"Flying\", \"Rock\", \"Bug\",\"Ghost\",\"Steel\",\"Fire\",\"Water\",\"Electric\",\"Ice\",\"Dragon\",\"Dark\"]],\n[\"Ground\",[\"Poison\", \"Rock\", \"Electric\"], [\"Water\", \"Grass\", \"Ice\"],[\"Normal\",\"Fighting\", \"Flying\", \"Ground\", \"Bug\",\"Ghost\",\"Steel\",\"Fire\",\"Psychic\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Rock\",[\"Normal\", \"Flying\", \"Poison\", \"Fire\"],[\"Fighting\", \"Ground\", \"Steel\", \"Water\", \"Grass\"],[\"Rock\", \"Bug\",\"Ghost\",\"Electric\",\"Psychic\",\"Ice\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Bug\",[\"Fighting\", \"Ground\", \"Grass\"], [\"Flying\", \"Rock\", \"Fire\"],[\"Normal\", \"Poison\", \"Bug\",\"Ghost\",\"Steel\",\"Water\",\"Electric\",\"Psychic\",\"Ice\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Ghost\", [\"Normal\", \"Fighting\", \"Poison\", \"Bug\"],[\"Ghost\", \"Dark\"],[\"Flying\", \"Ground\", \"Rock\", \"Steel\",\"Fire\",\"Water\",\"Grass\",\"Electric\",\"Psychic\",\"Ice\",\"Dragon\",\"Fairy\"]],\n[\"Steel\",[\"Normal\", \"Flying\", \"Poison\", \"Rock\", \"Bug\", \"Steel\", \"Grass\", \"Psychic\", \"Ice\", \"Dragon\", \"Fairy\"],[\"Fighting\", \"Ground\", \"Fire\"],[\"Ghost\",\"Water\",\"Electric\",\"Dark\"]],\n[\"Fire\",[\"Bug\", \"Steel\", \"Fire\", \"Grass\", \"Ice\"],[\"Ground\", \"Rock\", \"Water\"],[\"Normal\",\"Fighting\", \"Flying\", \"Poison\", \"Ghost\",\"Electric\",\"Psychic\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Water\",[\"Steel\", \"Fire\", \"Water\", \"Ice\"],[\"Grass\", \"Electric\"],[\"Normal\",\"Fighting\", \"Flying\", \"Poison\", \"Ground\", \"Rock\", \"Bug\",\"Ghost\",\"Psychic\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Grass\", [\"Ground\", \"Water\", \"Grass\", \"Electric\"],[\"Flying\", \"Poison\", \"Bug\", \"Fire\", \"Ice\"],[\"Normal\",\"Fighting\", \"Rock\", \"Ghost\",\"Steel\",\"Psychic\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Electric\", [\"Flying\", \"Steel\", \"Electric\"],[\"Ground\"],[\"Normal\",\"Fighting\", \"Poison\", \"Rock\", \"Bug\",\"Ghost\",\"Fire\",\"Water\",\"Grass\",\"Psychic\",\"Ice\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Psychic\", [\"Fighting\", \"Psychic\"],[\"Bug\", \"Ghost\", \"Dark\"],[\"Normal\", \"Flying\", \"Poison\", \"Ground\", \"Rock\", \"Steel\",\"Fire\",\"Water\",\"Grass\",\"Electric\",\"Ice\",\"Dragon\",\"Fairy\"]],\n[\"Ice\",[\"Ice\"],[\"Fighting\",\"Rock\", \"Steel\",\"Fire\"],[\"Normal\", \"Flying\", \"Poison\", \"Ground\", \"Bug\",\"Ghost\",\"Water\",\"Grass\",\"Electric\",\"Psychic\",\"Dragon\",\"Fairy\",\"Dark\"]],\n[\"Dragon\",[\"Fire\", \"Water\", \"Grass\", \"Electric\"],[\"Ice\", \"Dragon\", \"Fairy\"],[\"Normal\",\"Fighting\", \"Flying\", \"Poison\", \"Ground\", \"Rock\", \"Bug\",\"Ghost\",\"Steel\",\"Psychic\",\"Dark\"]],\n[\"Fairy\",[\"Fighting\", \"Bug\", \"Dragon\", \"Dark\"],[\"Poison\", \"Steel\"],[\"Normal\", \"Flying\", \"Ground\", \"Rock\",\"Ghost\",\"Fire\",\"Water\",\"Grass\",\"Electric\",\"Psychic\",\"Ice\",\"Fairy\"]],\n[\"Dark\",[\"Ghost\", \"Psychic\", \"Dark\"],[\"Fighting\", \"Bug\", \"Fairy\"],[\"Normal\", \"Flying\", \"Poison\", \"Ground\", \"Rock\",\"Steel\",\"Fire\",\"Water\",\"Grass\",\"Electric\",\"Ice\",\"Dragon\"]] \n]", "description": "

We choose an element from this list, the element is of the form [enemy, [not good to attack with], [good to attack with], [not good or bad to attack with]]. List is taken from data in a table at https://www.eurogamer.net/articles/2018-12-21-pokemon-go-type-chart-effectiveness-weaknesses 

", "templateType": "anything", "can_override": false}, "enemy": {"name": "enemy", "group": "Ungrouped variables", "definition": "lower(type[0])", "description": "

the enemy pokemon type

", "templateType": "anything", "can_override": false}, "not_good": {"name": "not_good", "group": "Ungrouped variables", "definition": "random(type[1])", "description": "

Not good to use against enemy type

", "templateType": "anything", "can_override": false}, "good": {"name": "good", "group": "Ungrouped variables", "definition": "random(type[2])", "description": "

Good to use against the enemy tyoe

", "templateType": "anything", "can_override": false}, "indifferent": {"name": "indifferent", "group": "Ungrouped variables", "definition": "random(type[3])", "description": "

Not great but not terrible to use against enemy pokemon

", "templateType": "anything", "can_override": false}, "n": {"name": "n", "group": "Ungrouped variables", "definition": "random(0..17)", "description": "", "templateType": "anything", "can_override": true}, "type": {"name": "type", "group": "Ungrouped variables", "definition": "pokemon_list[n]", "description": "", "templateType": "anything", "can_override": false}, "display_good": {"name": "display_good", "group": "Ungrouped variables", "definition": "if(len(pokemon_list[n][2])=1,pokemon_list[n][2][0], join(pokemon_list[n][2][0..-1],\", \")+\" and \"+pokemon_list[n][2][-1]) ", "description": "", "templateType": "anything", "can_override": false}, "display_not_good": {"name": "display_not_good", "group": "Ungrouped variables", "definition": "if(len(pokemon_list[n][1])=1,pokemon_list[n][1][0], join(pokemon_list[n][1][0..-1],\", \")+\" and \"+pokemon_list[n][1][-1]) ", "description": "", "templateType": "anything", "can_override": false}, "a_or_an": {"name": "a_or_an", "group": "Ungrouped variables", "definition": "if(enemy[0]=\"e\" or enemy[0]=\"i\",\"an\",\"a\")", "description": "", "templateType": "anything", "can_override": false}}, "variablesTest": {"condition": "", "maxRuns": 100}, "ungrouped_variables": ["pokemon_list", "n", "type", "enemy", "a_or_an", "not_good", "good", "indifferent", "display_not_good", "display_good"], "variable_groups": [], "functions": {}, "preamble": {"js": "", "css": ""}, "parts": [{"type": "1_n_2", "useCustomName": false, "customName": "", "marks": 0, "scripts": {}, "customMarkingAlgorithm": "", "extendBaseMarkingAlgorithm": true, "unitTests": [], "showCorrectAnswer": true, "showFeedbackIcon": true, "variableReplacements": [], "variableReplacementStrategy": "originalfirst", "nextParts": [], "suggestGoingBack": false, "adaptiveMarkingPenalty": 0, "exploreObjective": null, "prompt": "

Which of the following would have the most effective attacks?

", "minMarks": 0, "maxMarks": 0, "shuffleChoices": true, "displayType": "radiogroup", "displayColumns": "0", "showCellAnswerState": true, "choices": ["{image('resources/question-resources/GO_'+not_good+'.png')}   {not_good} ", "{image('resources/question-resources/GO_'+good+'.png')}   {good} ", "{image('resources/question-resources/GO_'+indifferent+'.png')}   {indifferent} "], "matrix": [0, "1", 0], "distractors": ["This is not a good choice", "", "This is not the best choice"]}], "partsMode": "all", "maxMarks": 0, "objectives": [], "penalties": [], "objectiveVisibility": "always", "penaltyVisibility": "always", "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}]}], "contributors": [{"name": "Ben Brawn", "profile_url": "https://numbas.mathcentre.ac.uk/accounts/profile/605/"}]}