10-18-2023, 09:50 AM
(This post was last modified: 10-18-2023, 09:52 AM by Alain Busser.)
I am answering (at least begining to answer) to myself with this code (for fifangha):
Instead of a MancalaBoard I use a custom board:
The new added vertices being not connected to the rectangle. These are what Flacourt called the "reservoirs".
Now for the start rules I have
Finally I try to imitate Flacourt's drawing in the metadata:
(32 and 33 are the indices of the reservoirs). It looks rather similar to Flacourt's drawing:
Now it remains to me, to program the moves, but it should work if a move begins with a fromTo (from the reservoir to a nonempty vertex of the player's inner row) then taking all the seeds from the vertex facing the lastTo and sow them beginning at a tibong (leftest or rightest vertex of the inner row).
Instead of a MancalaBoard I use a custom board:
Code:
(board (merge {
(rectangle 4 8)
(graph vertices: {{3.5 -1} {3.5 4}})
}
)
{
(track "TrackCCW1" "0,E,N1,W" loop:True P1)
(track "TrackCCW2" "16,E,N1,W" loop:True P2)
(track "TrackCW1" "7,W,N1,E" loop:True P1)
(track "TrackCW2" "23,W,N1,E" loop:True P2)
}
use: Vertex
)
Now for the start rules I have
Code:
(start
{
(set Count 1 to:(sites Inner))
(set Count 22 at: 32)
(set Count 22 at: 33)
}
)
Finally I try to imitate Flacourt's drawing in the metadata:
Code:
(graphics {
(board Style Mancala)
(show asHoles {32 33 } Oval)
})
Now it remains to me, to program the moves, but it should work if a move begins with a fromTo (from the reservoir to a nonempty vertex of the player's inner row) then taking all the seeds from the vertex facing the lastTo and sow them beginning at a tibong (leftest or rightest vertex of the inner row).