mancala_board

Crates.iomancala_board
lib.rsmancala_board
version0.2.0
sourcesrc
created_at2021-02-06 09:12:21.110028
updated_at2022-12-26 17:32:04.405953
descriptionA package with a minimal mancala board to play with.
homepagehttps://github.com/theswerd/mancala
repositoryhttps://github.com/theswerd/mancala
max_upload_size
id351471
size15,437
Specky (SpeckyYT)

documentation

README

Mancala Board

Features

  • Print board
  • Calculate moves without avalanche
  • Detect game over
  • Detect winner
  • Generate basic board
  • Arbitrary board size (const)
  • Generate random board
  • Calculate moves with avalanche
Board structure:
 _____________
(      RB     )
 ‾‾‾‾‾‾‾‾‾‾‾‾‾
 ____  |  ____
( L1 ) | ( R6 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
( L2 ) | ( R5 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
( L3 ) | ( R4 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
( L4 ) | ( R3 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
( L5 ) | ( R2 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
( L6 ) | ( R1 )
 ‾‾‾‾  |  ‾‾‾‾
 _____________
(     LB      )
 ‾‾‾‾‾‾‾‾‾‾‾‾‾
Commit count: 50

cargo fmt