mancala 0.1.0

Play a variant of mancala
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extern crate mancala;

use mancala::bout::Bout;
use mancala::game::GameBuilder;
use mancala::strategy::First;

fn main() {
    let mut red_strategy = First {};
    let mut blue_strategy = First {};
    let mut bout = Bout::new(&mut red_strategy, &mut blue_strategy);

    let game = GameBuilder::new().bowls(2).stones(4).build();

    let game = bout.start(game).expect("a finished game with score");
    println!("game: {:?}", game);
}