This repo includes the C++ and SolidJS implementation of the African game Mancala. This is done as a project for the course AI. It uses the Min-Max algorithm with alpha beta pruning to obtain the best possible move and play that.
This code supports only the CLI playthroughs.
- Clone the repo.
- Compile the C++ file
g++ -O2 mancala.cpp- Run the file. (This was built on linux and has not been tested on other devices)
./a.outYou can directly visit the vedabahu.github.io/mancala_js website to play it online.
- This repo uses pnpm package manager.
- Clone the repo.
- Run this:
cd mancala_solid_js
pnpm i
pnpm run dev- This will spin a development server at
http://localhost:3000.
This was a group project. It was possible thanks to the efforts of