mancala

Module game

Source
Expand description

Mancala Game related definitions

Mancala is a game with many variants. Here we focus on one variant, but we allow different number of bowls.

The code below shows how one would build a standard mancala game.

let game =
  GameBuilder::new()
    .bowls(6)
    .stones(4)
    .build();

Structs§

  • Game is an sequence of Positions.
  • GameBuilder is used to create a Mancala game.
  • Position is a instance of the board.

Enums§

  • Discriminates between all the ways a play can go wrong.
  • The names for the player.

Type Aliases§

  • Representation of a Bowl
  • Score a finished game;
  • Representation of a number of stones in a bowl