项目作者: volkanozkan

项目描述 :
Mancala Game in Java+AngularJS
高级语言: Java
项目地址: git://github.com/volkanozkan/mancala.git
创建时间: 2020-06-07T22:36:16Z
项目社区:https://github.com/volkanozkan/mancala

开源协议:MIT License

下载


Mancala Game (VolkanOzkan)

This is a java web application for playing Mancala game.
For the Rules of the game visit following Wikipedia link: https://en.wikipedia.org/wiki/Kalah

Tech Stack

  • Java
  • Spring Boot
  • AngularJS
  • MongoDB
  • Docker
  • Maven

Prerequisites

  • Java 8+
  • Maven
  • Docker

How to start the application

Start Docker Containers

  1. docker-compose up -d

Run the application

  1. $ mvn spring-boot:run

Run tests

  1. $ mvn test

How to play

After running the project, browse
http://localhost:9000, You will be the first player if there is not any avaible game, if there is you will be join to available game as a second player and game will start.

From another machine, browser or tab access to same address(http://localhost:9000). Again rule is the same, you will join to existing game or you will be the first player of newly created game depends on the game availability.

Each player can move only his stones, game will end depend on the rules and determine the winner.
It is possible to play multiple games at one time since application is thread-safe based on WebSocketSessions.

Author

Volkan Özkan

Screenshots:
alt text
alt text