Created
September 2, 2014 03:25
-
-
Save reillysiemens/7e8d5efa751afd330d4d to your computer and use it in GitHub Desktop.
I choose you!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
# There are only 151 Pokémon. | |
Pokémon = [ "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♀", "Nidorina", "Nidoqueen", "Nidoran♂", "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", "Growlithe", "Arcanine", "Poliwag", "Poliwhirl", | |
"Poliwrath", "Abra", "Kadabra", "Alakazam", "Machop", "Machoke", | |
"Machamp", "Bellsprout", "Weepinbell", "Victreebel", "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", "Drowzee", | |
"Hypno", "Krabby", "Kingler", "Voltorb", "Electrode", "Exeggcute", | |
"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" ] | |
# Pick one of 'em. | |
choosePokémon = () -> | |
Pokémon[Math.floor(Math.random() * Pokémon.length)] | |
# Throw that Pokéball! | |
console.log "I choose you, #{choosePokémon()}!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment