olafurw / poke-fighting-rust

Application that simulates a large grid of Pokémon types fighting each other.
24 stars 3 forks source link

Reworked fighter generation #31

Closed SfietKonstantin closed 2 years ago

SfietKonstantin commented 2 years ago

Made use of std::iter::repeat_with to construct the table of fighters. Also migrated to the GenerateRandomly trait, that generates one fighter at a time (to be used with repeat_with)