vote 0.1.3

Common voting methods
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use vote::{random_dictator, Preference};

fn main() {
    // Make a preference profile
    let v = Preference(vec![vec![0, 1, 2, 3]; 4]);

    // Make a voting method
    let x = random_dictator(v);

    // Get the result
    println!("{:?}", x.0)
}