-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
07490e7
commit e6d5f8e
Showing
3 changed files
with
107 additions
and
0 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
[package] | ||
name = "pokemon_generator" | ||
version = "0.1.0" | ||
edition = "2021" | ||
|
||
[dependencies] | ||
rand = "0.8" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
use std::env; | ||
|
||
use rand::{thread_rng, Rng}; | ||
|
||
fn main() { | ||
let mut pokedex = vec!["+Bulbasaur, +Ivysaur, +Venusaur, +Venusaur-Mega", "+Charmander, +Charmeleon, +Charizard, +Charizard-Mega-Y, +Charizard-Mega-X", "+Squirtle, +Wartortle, +Blastoise, +Blastoise-Mega", "+Caterpie, +Metapod, +Butterfree", "+Weedle, +Kakuna, +Beedrill, +Beedrill-Mega", "+Pidgey, +Pidgeotto, +Pidgeot, +Pidgeot-Mega", "+Rattata, +Raticate", "+Rattata-Alola, +Raticate-Alola", "+Spearow, +Fearow", "+Ekans, +Arbok", "+Pichu, +Pikachu, +Raichu", "+Raichu-Alola", "+Sandshrew, +Sandslash", "+Sandshrew-Alola, +Sandslash-Alola", "+Nidoran-F, +Nidorina, +Nidoqueen", "+Nidoran-M, +Nidorino, +Nidoking", "+Cleffa, +Clefairy, +Clefable", "+Vulpix, +Ninetales", "+Vulpix-Alola, +Ninetales-Alola", "+Igglybuff, +Jigglypuff, +Wigglytuff", "+Zubat, +Golbat, +Crobat", "+Oddish, +Gloom, +Vileplume, +Bellossom", "+Paras, +Parasect", "+Venonat, +Venomoth", "+Diglett, +Dugtrio", "+Diglett-Alola, +Dugtrio-Alola", "+Meowth, +Persian", "+Meowth-Alola, +Persian-Alola", "+Meowth-Galar, +Perrserker", "+Psyduck, +Golduck", "+Mankey, +Primeape, +Annihilape", "+Growlithe, +Arcanine", "+Growlithe-Hisui, +Arcanine-Hisui", "+Poliwag, +Poliwhirl, +Poliwrath, +Politoed", "+Abra, +Kadabra, +Alakazam, +Alakazam-Mega", "+Machop, +Machoke, +Machamp", "+Bellsprout, +Weepinbell, +Victreebel", "+Tentacool, +Tentacruel", "+Geodude, +Graveler, +Golem", "+Geodude-Alola, +Graveler-Alola, +Golem-Alola", "+Ponyta, +Rapidash", "+Ponyta-Galar, +Rapidash-Galar", "+Slowpoke, +Slowbro, +Slowbro-Mega, +Slowking", "+Slowpoke-Galar, +Slowbro-Galar, +Slowking-Galar", "+Magnemite, +Magneton, +Magnezone", "+Farfetch'd", "+Farfetch'd-Galar, +Sirfetch'd", "+Doduo, +Dodrio", "+Seel, +Dewgong", "+Grimer, +Muk", "+Grimer-Alola, +Muk-Alola", "+Shellder, +Cloyster", "+Gastly, +Haunter, +Gengar, +Gengar-Mega", "+Onix, +Steelix, +Steelix-Mega", "+Drowzee, +Hypno", "+Krabby, +Kingler", "+Voltorb, +Electrode", "+Voltorb-Hisui, +Electrode-Hisui", "+Exeggcute, +Exeggutor", "+Exeggutor-Alola", "+Cubone, +Marowak", "+Marowak-Alola", "+Tyrogue, +Hitmonlee, +Hitmonchan, +Hitmontop", "+Lickitung, +Lickylicky", "+Koffing, +Weezing", "+Weezing-Galar", "+Rhyhorn, +Rhydon, +Rhyperior", "+Happiny, +Chansey, +Blissey", "+Tangela, +Tangrowth", "+Kangaskhan, +Kangaskhan-Mega", "+Horsea, +Seadra, +Kingdra", "+Goldeen, +Seaking", "+Staryu, +Starmie", "+Mime Jr., +Mr. Mime", "+Mr. Mime-Galar, +Mr. Rime", "+Scyther, +Scizor, +Scizor-Mega, +Kleavor", "+Smoochum, +Jynx", "+Elekid, +Electabuzz, +Electivire", "+Magby, +Magmar, +Magmortar", "+Pinsir, +Pinsir-Mega", "+Tauros", "+Tauros-Paldea-Combat", "+Tauros-Paldea-Blaze", "+Tauros-Paldea-Aqua", "+Magikarp, +Gyarados, +Gyarados-Mega", "+Lapras", "+Ditto", "+Eevee, +Vaporeon, +Jolteon, +Flareon, +Espeon, +Umbreon, +Leafeon, +Glaceon, +Sylveon", "+Porygon, +Porygon2, +Porygon-Z", "+Omanyte, +Omastar", "+Kabuto, +Kabutops", "+Aerodactyl, +Aerodactyl-Mega", "+Munchlax, +Snorlax", "+Articuno", "+Articuno-Galar", "+Zapdos", "+Zapdos-Galar", "+Moltres", "+Moltres-Galar", "+Dratini, +Dragonair, +Dragonite", "+Mewtwo, +Mewtwo-Mega-X, +Mewtwo-Mega-Y", "+Mew", "+Chikorita, +Bayleef, +Meganium", "+Cyndaquil, +Quilava, +Typhlosion, +Typhlosion-Hisui", "+Totodile, +Croconaw, +Feraligatr", "+Sentret, +Furret", "+Hoothoot, +Noctowl", "+Ledyba, +Ledian", "+Spinarak, +Ariados", "+Chinchou, +Lanturn", "+Togepi, +Togetic, +Togekiss", "+Natu, +Xatu", "+Mareep, +Flaaffy, +Ampharos, +Ampharos-Mega", "+Azurill, +Marill, +Azumarill", "+Bonsly, +Sudowoodo", "+Hoppip, +Skiploom, +Jumpluff", "+Aipom, +Ambipom", "+Sunkern, +Sunflora", "+Yanma, +Yanmega", "+Wooper, +Quagsire", "+Wooper-Paldea, +Clodsire", "+Murkrow, +Honchkrow", "+Misdreavus, +Mismagius", "+Unown", "+Wynaut, +Wobbuffet", "+Girafarig, +Farigiraf", "+Pineco, +Forretress", "+Dunsparce, +Dudunsparce", "+Gligar, +Gliscor", "+Snubbull, +Granbull", "+Qwilfish", "+Qwilfish-Hisui, +Overqwil", "+Shuckle", "+Heracross, +Heracross-Mega", "+Sneasel, +Weavile", "+Sneasel-Hisui, +Sneasler", "+Teddiursa, +Ursaring, +Ursaluna", "+Ursaluna-Bloodmoon", "+Slugma, +Magcargo", "+Swinub, +Piloswine, +Mamoswine", "+Corsola", "+Corsola-Galar, +Cursola", "+Remoraid, +Octillery", "+Delibird", "+Mantyke, +Mantine", "+Skarmory", "+Houndour, +Houndoom, +Houndoom-Mega", "+Phanpy, +Donphan", "+Stantler, +Wyrdeer", "+Smeargle", "+Miltank", "+Raikou", "+Entei", "+Suicune", "+Larvitar, +Pupitar, +Tyranitar, +Tyranitar-Mega", "+Lugia", "+Ho-Oh", "+Celebi", "+Treecko, +Grovyle, +Sceptile, +Sceptile-Mega", "+Torchic, +Combusken, +Blaziken, +Blaziken-Mega", "+Mudkip, +Marshtomp, +Swampert, +Swampert-Mega", "+Poochyena, +Mightyena", "+Zigzagoon, +Linoone", "+Zigzagoon-Galar, +Linoone-Galar, +Obstagoon", "+Wurmple, +Silcoon, +Beautifly, +Cascoon, +Dustox", "+Lotad, +Lombre, +Ludicolo", "+Seedot, +Nuzleaf, +Shiftry", "+Taillow, +Swellow", "+Wingull, +Pelipper", "+Ralts, +Kirlia, +Gardevoir, +Gardevoir-Mega, +Gallade, +Gallade-Mega", "+Surskit, +Masquerain", "+Shroomish, +Breloom", "+Slakoth, +Vigoroth, +Slaking", "+Nincada, +Ninjask, +Shedinja", "+Whismur, +Loudred, +Exploud", "+Makuhita, +Hariyama", "+Nosepass, +Probopass", "+Skitty, +Delcatty", "+Sableye, +Sableye-Mega", "+Mawile, +Mawile-Mega", "+Aron, +Lairon, +Aggron, +Aggron-Mega", "+Meditite, +Medicham, +Medicham-Mega", "+Electrike, +Manectric, +Manectric-Mega", "+Plusle", "+Minun", "+Volbeat", "+Illumise", "+Budew, +Roselia, +Roserade", "+Gulpin, +Swalot", "+Carvanha, +Sharpedo", "+Wailmer, +Wailord", "+Numel, +Camerupt, +Camerupt-Mega", "+Torkoal", "+Spoink, +Grumpig", "+Spinda, +Trapinch, +Vibrava, +Flygon", "+Cacnea, +Cacturne", "+Swablu, +Altaria, +Altaria-Mega", "+Zangoose", "+Seviper", "+Lunatone", "+Solrock", "+Barboach, +Whiscash", "+Corphish, +Crawdaunt", "+Baltoy, +Claydol", "+Lileep, +Cradily", "+Anorith, +Armaldo", "+Feebas, +Milotic", "+Castform", "+Kecleon", "+Shuppet, +Banette, +Banette-Mega", "+Duskull, +Dusclops, +Dusknoir", "+Tropius", "+Chingling, +Chimecho", "+Absol, +Absol-Mega", "+Snorunt, +Glalie, +Frosslass", "+Spheal, +Sealeo, +Walrein", "+Clamperl, +Huntail, +Gorebyss", "+Relicanth", "+Luvdisc", "+Bagon, +Shelgon, +Salamence, +Salamence-Mega", "+Beldum, +Metang, +Metagross, +Metagross-Mega", "+Regirock", "+Regice", "+Registeel", "+Latias, +Latias-Mega", "+Latios, +Latios-Mega", "+Kyogre, +Kyogre-Primal", "+Groudon, +Groudon-Primal", "+Rayquaza, +Rayquaza-Mega", "+Jirachi", "+Deoxys", "+Deoxys-Attack", "+Deoxys-Defense", "+Deoxys-Speed", "+Turtwig, +Grotle, +Torterra", "+Chimchar, +Monferno, +Infernape", "+Piplup, +Prinplup, +Empoleon", "+Starly, +Staravia, +Staraptor", "+Bidoof, +Bibarel", "+Kricketot, +Kricketune", "+Shinx, +Luxio, +Luxray", "+Cranidos, +Rampardos", "+Shieldon, +Bastiodon", "+Burmy, +Wormadam, +Wormadam-Sandy, +Wormadam-Trash, +Mothim", "+Combee, +Vespiquen", "+Pachirisu", "+Buizel, +Floatzel", "+Cherubi, +Cherrim", "+Shellos, +Gastrodon", "+Drifloon, +Drifblim", "+Buneary, +Lopunny, +Lopunny-Mega", "+Glameow, +Purugly", "+Stunky, +Skuntank", "+Bronzor, +Bronzong", "+Chatot", "+Spiritomb", "+Gible, +Gabite, +Garchomp, +Garchomp-Mega", "+Riolu, +Lucario, +Lucario-Mega", "+Hippopotas, +Hippowdon", "+Skorupi, +Drapion", "+Croagunk, +Toxicroak", "+Carnivine", "+Finneon, +Lumineon", "+Snover, +Abomasnow", "+Rotom", "+Rotom-Heat", "+Rotom-Wash", "+Rotom-Frost", "+Rotom-Fan", "+Rotom-Mow", "+Uxie", "+Mesprit", "+Azelf", "+Dialga, +Dialga-Origin", "+Palkia, +Palkia-Origin", "+Heatran", "+Regigigas", "+Giratina, +Giratina-Origin", "+Cresselia", "+Phione", "+Manaphy", "+Darkrai", "+Shaymin", "+Shaymin-Sky", "+Arceus", "+Arceus-Bug", "+Arceus-Dark", "+Arceus-Dragon", "+Arceus-Electric", "+Arceus-Fairy", "+Arceus-Fighting", "+Arceus-Fire", "+Arceus-Flying", "+Arceus-Ghost", "+Arceus-Grass", "+Arceus-Ground", "+Arceus-Ice", "+Arceus-Poison", "+Arceus-Psychic", "+Arceus-Rock", "+Arceus-Steel", "+Arceus-Water", "+Victini", "+Snivy, +Servine, +Serperior", "+Tepig, +Pignite, +Emboar", "+Oshawott, +Dewott, +Samurott, +Samurott-Hisui", "+Patrat, +Watchog", "+Lillipup, +Herdier, +Stoutland", "+Purrloin, +Liepard", "+Pansage, +Simisage", "+Pansear, +Simisear", "+Panpour, +Simipour", "+Munna, +Musharna", "+Pidove, +Tranquill, +Unfezant", "+Blitzle, +Zebstrika", "+Roggenrola, +Boldore, +Gigalith", "+Woobat, +Swoobat", "+Drilbur, +Excadrill", "+Audino, +Audino-Mega", "+Timburr, +Gurdurr, +Conkeldurr", "+Tympole, +Palpitoad, +Seismitoad", "+Throh", "+Sawk", "+Sewaddle, +Swadloon, +Leavanny", "+Venipede, +Whirlipede, +Scolipede", "+Cottonee, +Whimsicott", "+Petilil, +Lilligant, +Lilligant-Hisui", "+Basculin, +Basculin-Blue-Striped", "+Basculin-White-Striped, +Basculegion, +Basculegion-F", "+Sandile, +Krokorok, +Krookodile", "+Darumaka, +Darmanitan", "+Darumaka-Galar, +Darmanitan-Galar", "+Maractus", "+Dwebble, +Crustle", "+Scraggy, +Scrafty", "+Sigilyph", "+Yamask, +Cofagrigus", "+Yamask-Galar, +Runerigus", "+Tirtouga, +Carracosta", "+Archen, +Archeops", "+Trubbish, +Garbodor", "+Zorua, +Zoroark", "+Zorua-Hisui, +Zoroark-Hisui", "+Minccino, +Cinccino", "+Gothita, +Gothorita, +Gothitelle", "+Solosis, +Duosion, +Reuniclus", "+Ducklett, +Swanna", "+Vanillite, +Vanillish, +Vanilluxe", "+Deerling, +Sawsbuck", "+Emolga", "+Karrablast, +Escavalier", "+Foongus, +Amoonguss", "+Frillish, +Jellicent", "+Alomomola", "+Joltik, +Galvantula", "+Ferroseed, +Ferrothorn", "+Klink, +Klang, +Klinklang", "+Tynamo, +Eelektrik, +Eelektross", "+Elgyem, +Beheeyem", "+Litwick, +Lampent, +Chandelure", "+Axew, +Fraxure, +Haxorus", "+Cubchoo, +Beartic", "+Cryogonal", "+Shelmet, +Accelgor", "+Stunfisk", "+Stunfisk-Galar", "+Mienfoo, +Mienshao", "+Druddigon", "+Golett, +Golurk", "+Pawniard, +Bisharp, +Kingambit", "+Bouffalant", "+Rufflet, +Braviary, +Braviary-Hisui", "+Vullaby, +Mandibuzz", "+Heatmor", "+Durant", "+Deino, +Zweilous, +Hydreigon", "+Larvesta, +Volcarona", "+Cobalion", "+Terrakion", "+Virizion", "+Tornadus", "+Tornadus-Therian", "+Thundurus", "+Thundurus-Therian", "+Reshiram", "+Zekrom", "+Landorus", "+Landorus-Therian", "+Kyurem", "+Kyurem-Black", "+Kyurem-White", "+Keldeo", "+Meloetta", "+Genesect", "+Chespin, +Quilladin, +Chesnaught", "+Fennekin, +Braixen, +Delphox", "+Froakie, +Frogadier, +Greninja", "+Bunnelby, +Diggersby", "+Fletchling, +Fletchinder, +Talonflame", "+Scatterbug, +Spewpa, +Vivillon", "+Litleo, +Pyroar", "+Flabébé, +Floette, +Florges", "+Floette-Eternal", "+Skiddo, +Gogoat", "+Pancham, +Pangoro", "+Furfrou", "+Espurr, +Meowstic, +Meowstic-F", "+Honedge, +Doublade, +Aegislash", "+Spritzee, +Aromatisse", "+Swirlix, +Slurpuff", "+Inkay, +Malamar", "+Binacle, +Barbaracle", "+Skrelp, +Dragalge", "+Clauncher, +Clawitzer", "+Helioptile, +Heliolisk", "+Tyrunt, +Tyrantrum", "+Amaura, +Aurorus", "+Hawlucha", "+Dedenne", "+Carbink", "+Goomy, +Sliggoo, +Sliggoo-Hisui, +Goodra, +Goodra-Hisui", "+Klefki", "+Phantump, +Trevenant", "+Pumpkaboo, +Gourgeist", "+Bergmite, +Avalugg, +Avalugg-Hisui", "+Noibat, +Noivern", "+Xerneas", "+Yveltal", "+Zygarde", "+Diancie", "+Hoopa", "+Hoopa-Unbound", "+Volcanion", "+Rowlet, +Dartrix, +Decidueye, +Decidueye-Hisui", "+Litten, +Torracat, +Incineroar", "+Popplio, +Brionne, +Primarina", "+Pikipek, +Trumbeak, +Toucannon", "+Yungoos, +Gumshoos", "+Grubbin, +Charjabug, +Vikavolt", "+Crabrawler, +Crabominable", "+Oricorio", "+Oricorio-Pom-Pom", "+Oricorio-Pa'u", "+Oricorio-Sensu", "+Cutiefly, +Ribombee", "+Rockruff, +Lycanroc, +Lycanroc-Midnight, +Lycanroc-Dusk", "+Wishiwashi", "+Mareanie, +Toxapex", "+Mudbray, +Mudsdale", "+Dewpider, +Araquanid", "+Fomantis, +Lurantis", "+Morelull, +Shiinotic", "+Salandit, +Salazzle", "+Stufful, +Bewear", "+Bounsweet, +Steenee, +Tsareena", "+Comfey", "+Oranguru", "+Passimian", "+Wimpod, +Golisopod", "+Sandygast, +Palossand", "+Pyukumuku", "+Type: Null, +Silvally", "+Silvally-Bug", "+Silvally-Dark", "+Silvally-Dragon", "+Silvally-Electric", "+Silvally-Fairy", "+Silvally-Fighting", "+Silvally-Fire", "+Silvally-Flying", "+Silvally-Ghost", "+Silvally-Grass", "+Silvally-Ground", "+Silvally-Ice", "+Silvally-Poison", "+Silvally-Psychic", "+Silvally-Rock", "+Silvally-Steel", "+Silvally-Water", "+Minior", "+Komala", "+Turtonator", "+Togedemaru", "+Mimikyu", "+Bruxish", "+Drampa", "+Dhelmise", "+Jangmo-o, +Hakamo-o, +Kommo-o", "+Tapu Koko", "+Tapu Lele", "+Tapu Bulu", "+Tapu Fini", "+Cosmog, +Cosmoem, +Solgaleo, +Lunala", "+Nihilego", "+Buzzwole", "+Pheromosa", "+Xurkitree", "+Celesteela", "+Kartana", "+Guzzlord", "+Necrozma", "+Necrozma-Dusk-Mane", "+Necrozma-Dawn-Wings", "+Magearna", "+Marshadow", "+Poipole", "+Naganadel", "+Stakataka", "+Blacephalon", "+Zeraora", "+Meltan, +Melmetal", "+Grookey, +Thwackey, +Rillaboom", "+Scorbunny, +Raboot, +Cinderace", "+Sobble, +Drizzile, +Inteleon", "+Skwovet, +Greedent", "+Rookidee, +Corvisquire, +Corviknight", "+Blipbug, +Dottler, +Orbeetle", "+Nickit, +Thievul", "+Gossifleur, +Eldegoss", "+Wooloo, +Dubwool", "+Chewtle, +Drednaw", "+Yamper, +Boltund", "+Rolycoly, +Carkol, +Coalossal", "+Applin, +Flapple, +Appletun, +Dipplin, +HYdrapple", "+Silicobra, +Sandaconda", "+Cramorant", "+Arrokuda, +Barraskewda", "+Toxel, +Toxtricity, +Toxtricity-Low-Key", "+Sizzlipede, +Centiskorch", "+Clobbopus, +Grapploct", "+Sinistea, +Polteageist", "+Hatenna, +Hattrem, +Hatterene", "+Impidimp, +Morgrem, +Grimmsnarl", "+Milcery, +Alcremie", "+Falinks", "+Pincurchin", "+Snom, +Frosmoth", "+Stonjourner", "+Eiscue", "+Indeedee", "+Indeedee-F", "+Morpeko", "+Cufant, +Copperajah", "+Dracozolt", "+Arctozolt", "+Dracovish", "+Arctovish", "+Duraludon, +Archaludon", "+Dreepy, +Drakloak, +Dragapult", "+Zacian", "+Zacian-Crowned", "+Zamazenta", "+Zamazenta-Crowned", "+Eternatus", "+Eternatus-Eternamax", "+Kubfu, +Urshifu, +Urshifu-Rapid-Strike", "+Zarude", "+Regieleki", "+Regidrago", "+Glastrier", "+Spectrier", "+Calyrex", "+Calyrex-Ice", "+Calyrex-Shadow", "+Enamorus", "+Enamorus-Therian", "+Sprigatito, +Floragato, +Meowscarada", "+Fuecoco, +Crocalor, +Skeledirge", "+Quaxly, +Quaxwell, +Quaquaval", "+Lechonk, +Oinkologne, +Oinkologne-F", "+Tarountula, +Spidops", "+Nymble, +Lokix", "+Pawmi, +Pawmo, +Pawmot", "+Tandemaus, +Maushold", "+Fidough, +Dachsbun", "+Smoliv, +Dolliv, +Arboliva", "+Squawkabilly", "+Nacli, +Naclstack, +Garganacl", "+Charcadet, +Armarouge, +Ceruledge", "+Tadbulb, +Bellibolt", "+Wattrel, +Kilowattrel", "+Maschiff, +Mabosstiff", "+Shroodle, +Grafaiai", "+Bramblin, +Brambleghast", "+Toedscool, +Toedscruel", "+Klawf", "+Capsakid, +Scovillain", "+Rellor, +Rabsca", "+Flittle, +Espathra", "+Tinkatink, +Tinkatuff, +Tinkaton", "+Wiglett, +Wugtrio", "+Bombirdier", "+Finizen, +Palafin", "+Varoom, +Revavroom", "+Cyclizar", "+Orthworm", "+Glimmet, +Glimmora", "+Greavard, +Houndstone", "+Flamigo", "+Cetoddle, +Cetitan", "+Veluza", "+Dondozo", "+Tatsugiri", "+Great Tusk", "+Scream Tail", "+Brute Bonnet", "+Flutter Mane", "+Slither Wing", "+Sandy Shocks", "+Iron Treads", "+Iron Bundle", "+Iron Hands", "+Iron Jugulis", "+Iron Moth", "+Iron Thorns", "+Frigibax, +Arctibax, +Baxcalibur", "+Gimmighoul, +Gholdengo", "+Wo-Chien", "+Chien-Pao", "+Ting-Lu", "+Chi-Yu", "+Roaring Moon", "+Iron Valiant", "+Koraidon", "+Miraidon", "+Walking Wake", "+Iron Leaves", "+Poltchageist, +Sinistcha", "+Okidogi", "+Munkidori", "+Fezandipiti", "+Ogerpon", "+Ogerpon-Wellspring", "+Ogerpon-Hearthflame", "+Ogerpon-Cornerstone", "+Gouging Fire", "+Raging Bolt", "+Iron Boulder", "+Iron Crown", "+Terapagos", "+Pecharunt"]; | ||
|
||
let amount: usize = env::args().skip(1).next().unwrap().parse().unwrap(); | ||
if amount > pokedex.len() { | ||
panic!("Cannot generate more than {}", pokedex.len()); | ||
} | ||
|
||
let mut command = "/challenge gen9nationaldexdoubles@@@- all Pokemon, Mega Rayquaza Clause, -Machamp + Fissure + No Guard, +NFE, Team Preview, Force Open Team Sheets, VGC Timer, Sleep Clause Mod, Dynamax Clause, Z-Move Clause, CFZ Clause, Item Clause, Nickname Clause, Exact HP Mod, * Restricted Legendary, Limit One Restricted, Endless Battle Clause, Switch Priority Clause Mod, Best of = 3, Cancel Mod, Adjust Level Down = 50, Picked Team Size = 4, +Coaching, +Power Construct".to_string(); | ||
|
||
let mut rng = thread_rng(); | ||
|
||
for _ in 0..amount { | ||
let pick = rng.gen_range(0..pokedex.len()); | ||
command += ", "; | ||
command += pokedex[pick]; | ||
pokedex.swap_remove(pick); | ||
} | ||
|
||
println!("{}", command); | ||
} |