Closed ToferC closed 4 years ago
Yes I ran into the same issue while following the tutorial just a month ago, but I'm afraid you're on the wrong project.
The project hosting the code for the tutorial already has an issue open: https://github.com/tomassedovic/roguelike-tutorial/issues/40
Sorry about that. Closing.
First - amazing work and huge thanks for the tutorial and this module. I know you haven't had time to keep it updated, but wanted to add the issue for other users.
I'm fairly new to Rust and love the flow of the tutorial and am finding it really useful to get familiar with basic gamedev and loops as well.
As for the issue, it seems like
WeightedChoice
andWeighted
in https://tomassedovic.github.io/roguelike-tutorial/part-12-monster-item-progression.html has been depreciated in favour ofrand::distributions::WeightedIndex
The pull request and discussion seems to have gone on here: https://github.com/rust-random/rand/pull/518
A working update for the first part using WeightedIndex:
Cheers!