https://github.com/vivekanand-vr/monopoly-2player
An API based 2-player monopoly game, added front-end for better UI.
https://github.com/vivekanand-vr/monopoly-2player
api java reactjs spring-boot spring-rest
Last synced: about 2 months ago
JSON representation
An API based 2-player monopoly game, added front-end for better UI.
- Host: GitHub
- URL: https://github.com/vivekanand-vr/monopoly-2player
- Owner: vivekanand-vr
- Created: 2024-04-23T05:10:19.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-01T11:39:26.000Z (about 2 years ago)
- Last Synced: 2025-12-07T05:46:04.369Z (6 months ago)
- Topics: api, java, reactjs, spring-boot, spring-rest
- Language: Java
- Homepage:
- Size: 677 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 2 Player Monopoly Game with Spring Boot
This project is a Monopoly game implemented using Spring Boot. It allows players to create and play the game online with the following features:
## Features Implemented
1. **Create New Game**: Ability for a host (also a player) to create a new game, therefore discarding the old one.
2. **Play with Another Player**: Ability for a host (also a player) to play the game with another player.
3. **Cash System**: Ability for a player to have their cash system, and start off with $1000.
4. **Roll Dice**: Ability for a player to roll 2 dice and be informed of the place landed.
5. **Auto Purchase Place**: Ability to auto purchase a place when landed and informed.
6. **Auto Pay Rent**: Ability to auto pay to the person whose place was landed on and informed.
7. **Start Bonus**: Ability to gain +$200 when the “start” is crossed.
8. **Declare Winner**: Ability to declare who the winner of a game is based on bankruptcy or the player with the highest cash before turn 50.
## Example System Usage
- Person A : [http://localhost:9999/create-game/](http://localhost:8080/create-game/) >> Game Created Successfully
- Person A : [http://localhost:9999roll-die/p1](http://localhost:8080/roll-die/p1) >> Die rolled 11 and landed on Place ABC, Unclaimed place and hence bought for $200. Remaining balance is $800.
- Person B : [http://localhost:9999/roll-die/p2](http://localhost:8080/roll-die/p2) >> Die rolled 4 and landed on Place DEF, Unclaimed place and hence bought for $150. Remaining balance is $850.
## Features
1. **Database Data Persistence**: Data persistence ensures that even if the Spring application is restarted, the game can be played uninterrupted.
2. **Design Patterns**: MVC design pattern is used for a highly maintainable and readable code base.
3. **Documentation**: Documentation ensures a highly maintainable and readable code base.
## Technologies Used:
- **Frontend**: React JS, Tailwind CSS, Jest
- **Backend**: Java, Spring Boot, MySQL, Junit
## Checklist
- [x] Completed a minimal working model with documentation of the required features.
- [x] Improvise working model to incorporate appropriate design/architectural patterns.
- [x] Perform unit testing.
- [ ] Create and Push `guide.txt`.
- [x] Add User Interface to play and display messages.