A concurrent game that is played through WebSockets. The game is first hosted by a user who creates a room object and joining users enter the unique id to join the game. When the game reaches 2 players the first game starts and when 4 players are present then the second game starts, the same logic follows upto 4 games and thus handling 8 concurrent players. All games are played concurrently. The image below illustrates 3 games in actions.
Includes: 3 concurrently playable games handling 6 users. Chat system, and game status updater. See Image gallery below.
Click on Image to watch the video
- Play up to 4 games involving 8 players
- Chatbox to communicate with the whole room
- Status updater on the moves being made
- Matchmaking allocation when you have no one to play with :)
- Leaderboard on active and highly performing users
- Global chat to message with people in the lobby
-Java 1.8
-MVN
-Spring Boot
-Lombok plugin
Then Build the app with:
Mvn clean install
Run it with
Mvn spring-boot:run
- Application with Spring Boot, MVN, JAVA 8 & WebSockets
- Illustrates concurrency by using multi threads, locking, semaphore, sessions, concurrent Data-structures
- Scheduled threads handle back-end operations when a request is made by the user
- It's a stateful app, i.e. uses browser session id to allocate user after page load
- Developed TDD test cases to check all functionalities in the game