Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/zaxovaiko/mancala-game

🧩 Mancala - 2-player turn-based strategy board game played with small stones built with React.js
https://github.com/zaxovaiko/mancala-game

alpha-beta-pruning mancala mancala-game minimax-algorithm reactjs

Last synced: about 1 month ago
JSON representation

🧩 Mancala - 2-player turn-based strategy board game played with small stones built with React.js

Awesome Lists containing this project

README

        

# Mancala game

Mancala is a generic name for a family of two-player turn-based strategy board games played with small stones, beans, or seeds and rows of holes or pits in the earth, a board or other playing surface. The objective is usually to capture all or some set of the opponent's pieces.

Used algorithm for bot:

- [Minimax](https://en.wikipedia.org/wiki/Minimax)
- [Minimax with alpha-beta prunning](https://en.wikipedia.org/wiki/Alpha%E2%80%93beta_pruning)

The player's score is calculated with simple heuristic: sum of stones in all player's cells.

## How to run

- Clone this repo
- Run `npm install`
- Run `npm run start`

## Screenshots

![Main view](https://imgur.com/RWfHqmy.png)

![Won view](https://imgur.com/cOwVzJv.png)