podch 0.1.0

Game engine for the podch abstract board game
Documentation
pub use stone::*;
pub use board::*;
pub use used::*;
pub use similar::*;
pub use game::*;

mod stone;
mod board;
mod game;
mod similar;
mod used;

#[cfg(test)]
mod tests {
    use crate::Board;

    #[test]
    fn test_bin_board_set() {
        let mut board = crate::BinBoard::new(2, 3);
        board.set(0, 0, crate::Stone::Dark);
        board.set(1, 0, crate::Stone::Light);
        board.set(0, 1, crate::Stone::Dark);
        board.set(1, 1, crate::Stone::Light);
        assert_eq!(crate::BoardDisplay::from(&board).to_string(), "110\n220");
        board.set(0, 2, crate::Stone::Dark);
        assert_eq!(crate::BoardDisplay::from(&board).to_string(), "111\n220");
        board.set(1, 2, crate::Stone::Light);
        assert_eq!(crate::BoardDisplay::from(&board).to_string(), "111\n222");
    }
}