33
8
Input: an integer N between 1 and 151
Output: the Nth Pokemon.
Rules
You may use one data file.
You may not use any already made data decompression algorithms. This includes libraries and other programs.
Your program may not access files other than itself and your data file.
Scoring
Your score is the sum of the length of your code and data file.
Helpful Stuff
Here's a list of the first 151 pokemon separated by semicolons to help you generate your data file. Your output should exactly match the Nth entry of this line:
Bulbasaur;Ivysaur;Venusaur;Charmander;Charmeleon;Charizard;Squirtle;Wartortle;Blastoise;Caterpie;Metapod;Butterfree;Weedle;Kakuna;Beedrill;Pidgey;Pidgeotto;Pidgeot;Rattata;Raticate;Spearow;Fearow;Ekans;Arbok;Pikachu;Raichu;Sandshrew;Sandslash;Nidoran (f);Nidorina;Nidoqueen;Nidoran (m);Nidorino;Nidoking;Clefairy;Clefable;Vulpix;Ninetales;Jigglypuff;Wigglytuff;Zubat;Golbat;Oddish;Gloom;Vileplume;Paras;Parasect;Venonat;Venomoth;Diglett;Dugtrio;Meowth;Persian;Psyduck;Golduck;Mankey;Primeape;Growlith;Arcanine;Poliwag;Poliwhirl;Poliwrath;Abra;Kadabra;Alakazam;Machop;Machoke;Machamp;Bellsprout;Weepinbell;Victreebell;Tentacool;Tentacruel;Geodude;Graveler;Golem;Ponyta;Rapidash;Slowpoke;Slowbro;Magnemite;Magneton;Farfetch'd;Doduo;Dodrio;Seel;Dewgong;Grimer;Muk;Shellder;Cloyster;Gastly;Haunter;Gengar;Onix;Drowsee;Hypno;Krabby;Kingler;Voltorb;Electrode;Exeggute;Exeggutor;Cubone;Marowak;Hitmonlee;Hitmonchan;Lickitung;Koffing;Weezing;Rhyhorn;Rhydon;Chansey;Tangela;Kangaskhan;Horsea;Seadra;Goldeen;Seaking;Staryu;Starmie;Mr. Mime;Scyther;Jynx;Electabuzz;Magmar;Pinsir;Tauros;Magikarp;Gyarados;Lapras;Ditto;Eevee;Vaporeon;Jolteon;Flareon;Porygon;Omanyte;Omastar;Kabuto;Kabutops;Aerodactyl;Snorlax;Articuno;Zapdos;Moltres;Dratini;Dragonair;Dragonite;Mewtwo;Mew
Is Bubblegum allowed?
– PyRulez – 2017-10-28T20:41:18.193@PyRulez Yes, so long as you don't use any of its built-in data decompression. So good luck breaking SHA256. – cardboard_box – 2017-10-29T00:26:15.853
If our language has a builtin for returning the list of pokemon, can we use it without a byte addition? – caird coinheringaahing – 2017-10-30T19:20:16.827
@cairdcoinheringaahing If you're talking about pyke's builtin, I feel that goes against the spirit of the challenge, however I guess it would be non-competing anyway. – FlipTack – 2017-10-30T19:57:09.733
I just noticed this challenge, had written up the answer and then noticed the date for it :P I'm kind of disappointed I didn't get to use my language's one otherwise useless feature – Blue – 2019-07-17T18:36:56.533