qqpann / Mancala

Mancala board game, written in python. The rule is Kalah and can be extended.
8 stars 4 forks source link

One should not be able to fill into opponent's point pocket #2

Closed qqpann closed 3 years ago

qqpann commented 3 years ago

Example:

============================
[ 4]  9  0  1  0  2  1
----------------------------
      1  1  0  1 13  0 [15]
============================
turn: <HumanAgent id:0>
      1  2  3  4  5  6
0.09 0.14 0.09 0.11 0.12 0.09
Take from a pocket (chose the index)
> 5
<MancalaState: [[ 2  2  1  2  0  1 16  2  3  1  2  1 10  5], 1]>

============================
[ 5] 10  1  2  1  3  2
----------------------------
      2  2  1  2  0  1 [16]
============================
turn: <NegaScoutAgent id:1>
[7, 8, 9, 10, 11, 12]
[-0.12, -0.12, -0.12, -0.12, -0.12, -0.12]
<MancalaState: [[ 2  2  1  2  0  1 16  0  4  2  2  1 10  5], 0]>