masuda 0.1.0

pokemon rng functionality written in rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
extern crate masuda;

use masuda::generators::{Game, Method};
use masuda::pokemon::Nature;
use masuda::Filter;
use masuda::Profile;
use masuda::Searcher;

fn main() {
    let mut searcher = Searcher::new(Game::Emerald, Method::One, 100);

    let profile = Profile::new(10101, 12345);
    let filter = Filter::new(&profile).with_nature(Nature::Bold);

    for result in searcher.search(Some(filter)) {
        println!("{:?}", result);
    }
}