Mancala (Forth Game)

General games-related topics
Post Reply
User avatar
Forthretro.new.fr
Posts: 32
Joined: Thu Nov 19, 2009 9:34 pm

Mancala (Forth Game)

Post by Forthretro.new.fr »

Hello friends,
I am very sorry for my poor english.
This was my first game, called Mancala (also called Oware).
It comes from a basic program I had found in a Brazilian magazine. My purpose was to translate
in Forth the Minimax algorithm.
The rules: You are the Player against the computer.
At your turn, you choose one of the six houses under your control, removes all stone from that house, and distribute them, dropping one in each house counter-clockwise from this house.
If the last stone was placed into a house (your or computer house) that brought its total to two or three, all the stone in that house are captured and placed in your store. If the previous-to-last stone also brought a house to two or three, these are captured as well, and so on.
You can choose any level of difficulty, but the program is very slow above level 4.
This is my full-Forth version. I have another one part in Forth / part in Machine Language ( Mainly the very slow routine “Push Board” and “Pull Board”). It permits to play level 8.
I had to write a EO and a Vb81XuR file (Pls Xav could you check where the compatibility problem comes from ?)
For those interested, I put the listing in Forth.

Download Mancala Game.zip for free on uploading.com

In order to play type: MANCALA <Enter>

Amicalement Dominique
Post Reply