Skip to content

Nim Game with React. Using MinMax AI algorithm with AlphaBeta pruning

Notifications You must be signed in to change notification settings

Adamakram02/Nim-Game

 
 

Repository files navigation

NIM GAME

How to play NIM GAME

The game consists of two versions

The first version is:

Given N rods in n (n=1) heights, two players, take turns At each turn, the player has to select one heap and separate it into two different heaps having different number of rods A player looses the game if he/she cannot select a height for separation. Additional settings have been programmed for the game, such as the possibility of playing two players against each other and the possibility of playing one player against artificial intelligence with different difficulty levels.

The second version is

Two players take any number of matchsticks from one row alternately. The one, who takes the last matchstick loses. Additional settings have been programmed for the game, such as the possibility of playing two players against each other and the possibility of playing one player against artificial intelligence with different difficulty levels.

The project was written using React, and it is worth noting that everything you see in this game is hand-drawn.

Steps to install Nim on your system

  • Download Nim-Game repository
  • Open Anaconda terminal and cd to the location where Nim-Game is downloaded
  • Type npm i to install required packages
  • To open game window, type npm run dev

About

Nim Game with React. Using MinMax AI algorithm with AlphaBeta pruning

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.8%
  • Other 1.2%