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
17
18
//! Various strategies for playing Mancala

pub mod naive;
pub mod tree;
pub mod user;

pub use self::naive::First;
pub use self::tree::AlphaBeta;
pub use self::tree::MinMax;
pub use self::user::user;

use super::game::{Bowl, Position};

/// A strategy for playing Mancala
pub trait Strategy {
    /// Return the play for this position
    fn play(&mut self, position: &Position) -> Option<Bowl>;
}