libmancala

Crates.iolibmancala
lib.rslibmancala
version1.1.0
sourcesrc
created_at2022-11-17 22:22:22.335669
updated_at2022-11-17 22:53:02.06622
descriptionA frontend-agnostic library that implements the game of Mancala.
homepage
repositoryhttps://codeberg.org/cosmicmarley17/libmancala.git
max_upload_size
id717534
size45,886
Marley Sullivan (cosmicmarley17)

documentation

README

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

Commit count: 0

cargo fmt