libmancala

About

A frontend-agnostic Rust library that implements the game of Mancala.

The rules are implemented as specified on the Mancala page of the Official Game Rules website.

Usage Example

``` use libmancala::{MancalaBoard, Move, MoveResult, Player};

let mut board = MancalaBoard::new();

// Your code to get input from the player to make a move let input: Move = make_move();

let (gamestate, bonusturn, captured) = board.update(&input); ```