Giter Club home page Giter Club logo

kalah-2's Introduction

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

kalah-2's People

Contributors

maruf571 avatar

Watchers

_Motyim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.