diff --git a/pokemon_generator/Cargo.lock b/pokemon_generator/Cargo.lock new file mode 100644 index 0000000..6b14a27 --- /dev/null +++ b/pokemon_generator/Cargo.lock @@ -0,0 +1,75 @@ +# This file is automatically @generated by Cargo. +# It is not intended for manual editing. +version = 3 + +[[package]] +name = "cfg-if" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" + +[[package]] +name = "getrandom" +version = "0.2.15" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7" +dependencies = [ + "cfg-if", + "libc", + "wasi", +] + +[[package]] +name = "libc" +version = "0.2.155" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "97b3888a4aecf77e811145cadf6eef5901f4782c53886191b2f693f24761847c" + +[[package]] +name = "pokemon_generator" +version = "0.1.0" +dependencies = [ + "rand", +] + +[[package]] +name = "ppv-lite86" +version = "0.2.17" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de" + +[[package]] +name = "rand" +version = "0.8.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404" +dependencies = [ + "libc", + "rand_chacha", + "rand_core", +] + +[[package]] +name = "rand_chacha" +version = "0.3.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88" +dependencies = [ + "ppv-lite86", + "rand_core", +] + +[[package]] +name = "rand_core" +version = "0.6.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c" +dependencies = [ + "getrandom", +] + +[[package]] +name = "wasi" +version = "0.11.0+wasi-snapshot-preview1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" diff --git a/pokemon_generator/Cargo.toml b/pokemon_generator/Cargo.toml new file mode 100644 index 0000000..9484c23 --- /dev/null +++ b/pokemon_generator/Cargo.toml @@ -0,0 +1,7 @@ +[package] +name = "pokemon_generator" +version = "0.1.0" +edition = "2021" + +[dependencies] +rand = "0.8" diff --git a/pokemon_generator/src/main.rs b/pokemon_generator/src/main.rs new file mode 100644 index 0000000..df5c196 --- /dev/null +++ b/pokemon_generator/src/main.rs @@ -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); +}