mancala_board 0.1.9

A package with a minimal mancala board to play with.
Documentation

Mancala Board

Features

  • Print board
  • Calculate moves with avalanche
  • Detect game over
  • Detect winner
  • Generate basic board
  • Generate random board
  • Calculate moves without avalanche
Board structure:
 _____________
(      0      )
 ‾‾‾‾‾‾‾‾‾‾‾‾‾
 ____  |  ____
(  1 ) | ( 13 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
(  2 ) | ( 12 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
(  3 ) | ( 11 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
(  4 ) | ( 10 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
(  5 ) | (  9 )
 ‾‾‾‾  |  ‾‾‾‾
 ____  |  ____
(  6 ) | (  8 )
 ‾‾‾‾  |  ‾‾‾‾
 _____________
(      7      )
 ‾‾‾‾‾‾‾‾‾‾‾‾‾