libmancala 1.2.0

A frontend-agnostic library that implements the game of Mancala.
Documentation
  • Coverage
  • 75%
    18 out of 24 items documented1 out of 7 items with examples
  • Size
  • Source code size: 45.59 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 2.12 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • cosmicmarley17

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 (game_state, bonus_turn, captured) = board.update(&input);

See also

I've written a simple command-line Mancala game using this library. You can check it out for reference if you'd like:

Mancala Console