// 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\nInfo is taken from https://www.eurogamer.net/articles/2018-12-21-pokemon-go-type-chart-effectiveness-weaknesses
\nIcons 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
\nWe 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/"}]}