Skip to content

Monopoly is a multi-player economics-themed board game. In the game, players roll two dice to move around the game board, buying and trading properties and developing them with houses and hotels. Players collect rent from their opponents, aiming to drive them into bankruptcy.

License

Notifications You must be signed in to change notification settings

Bitt3r/monopoly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Monopoly

Monopoly is a multiplayer economics-themed board game.
In the game, players roll two dice to move around the game board,
buying and trading properties and developing them with houses and hotels.
Players collect rent from their opponents, aiming to drive them into bankruptcy.

You can pull docker image from docker pull bitt3r/monopoly

Commands

When app is started you will be prompted to enter info, and you will get 2 choices

  • start - to start monopoly
  • exit - terminate app

Once start is typed, game is initiated:

  • Enter number of players
  • Enter each player name

Once the game start and it is first player turn you have the following commands:
Note: You must enter name of the player whose turn it is followed by command

[playerName] {command} (option)

  • name roll - roll the dice.
  • name buy - buy property you are on.
  • name auction - auction the property you are on.
  • name bid # - bid $# in the current auction.
  • name pass - remove yourself from the current auction.
  • name pay - get out of jail by paying $50.
  • name card - use a \"Get Out of Jail Free\" card.
  • name end - end your turn.
  • name money - see how much money you have.
  • name mortgage \"property name\" - mortgage a property.
  • name unmortgage \"property name\" - unmortgage a property.
  • name build \"property name\" - build a house/hotel on a property.
  • name unbuild \"property name\" - unbuild a house/hotel from a property.
  • name forfeit - forfeit the game.
  • board - see the game board.
  • exit - quit the game.

There is one extra command that will not show, cheat command that will give you 1000$
Command is playerName cheat

TODO:

  • Add maven
  • Add Junit
  • Optimize code
  • Refactor some classes
  • Add docker
  • Add tests
  • Move to Spring
  • Add MySQL

About

Monopoly is a multi-player economics-themed board game. In the game, players roll two dice to move around the game board, buying and trading properties and developing them with houses and hotels. Players collect rent from their opponents, aiming to drive them into bankruptcy.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published