Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/zaxovaiko/mancala-game
- Owner: zaxovaiko
- Created: 2021-05-02T17:04:26.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-18T16:24:00.000Z (over 3 years ago)
- Last Synced: 2024-09-20T15:05:17.254Z (about 2 months ago)
- Topics: alpha-beta-pruning, mancala, mancala-game, minimax-algorithm, reactjs
- Language: JavaScript
- Homepage: https://mancala-game-js.herokuapp.com/
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)