Skip to content
/ kalah Public

This is a web implementation of Kalah game using java and spring boot.

Notifications You must be signed in to change notification settings

maruf571/kalah

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kalah Game

This is a java web application that runs the game of 6-stone Kalah. For the general rules of the game please refer to Wikipedia: https://en.wikipedia.org/wiki/Kalah. The default implementation of this app for 6-stone.

About the game

  • Each of the two players has six pits in front of him/her.
  • To the right of the six pits, each player has a larger pit, his Kalah or house.
  • At the start of the game, six stones are put In each pit.
  • The player who begins picks up all the stones in any of their own pits, and sows the stones on to the right, one in each of the following pits, including his own Kalah.
  • No stones are put in the opponent's' Kalah. If the players last stone lands in his own Kalah, he gets another turn. This can be repeated any number of times before it's the other player's turn.

Limitation

  • Two players have to play on the same screen.

Install & Running

Prerequisites

Pull from git

$ git clone https://github.com/maruf571/kalah
$ cd kalah

Build & run

  • Run test
$ mvn test
  • Run the web server on dev mode
$ mvn spring-boot:run
  • Run the web server on prod mode
$ mvn spring-boot:run -Dspring-boot.run.profiles=prod

API documentation

After running the project on dev environment and browse http://localhost:7070/swagger-ui.html

Play the game

After running the project & browse http://localhost:7070

Built With

Authors

  • Maruf Hassan

License

This project is licensed under the MIT License

About

This is a web implementation of Kalah game using java and spring boot.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published