Skip to content

jlin22/Monopoly

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

#Monopoly How to Play
You start off by inputting how many players you want, then have an option of a nickname for each player. Each player has a preset color that corresponds with it.Then, you roll to see which player goes first.
Most of the rules are given as messages in the middle of the board throughout when you play. Your goal is to buy as much property and then build houses and hotels such that you bankrupt other players. Once you run out of money, you lose.


Working features:
Pressing on a tile gives you the information on that tile.
Choosing players, and nicknames (You can skip the nickname part and you'll have default nickname.)
Rolling, giving back a random number. You cannot skip your turn without rolling. After rolling you can buy property, mortgage, choose to trade with another player.
Buying property. (It doesn't allow you to buy property another player owns, or tiles such as Chance or Jail.)
Paying rent correctly to the right player, and paying double if they own a monopoly, more if they own a house. (Electric Company and Water Works works properly, the pay is according to the roll.)
Buying houses, making sure that you can only buy if you own a monopoly and land on the property and have at least 1 on each before buying another house.
Mortgaging property that you own when you land on it.
Trading with another player using money or one of their properties.
Jail works such that you get locked in for 3 turns unless you roll a double.
Chance and Community Chest cards work for the most part.


Bugs:
For some reason, players cannot buy Boardwalk.
Some Chance and Community Chest cards don't work properly (You don't pay the rent when you move back 3 spaces)
Railroad rent doesn't work, players just pay $25, not more even if the owner owns more railroads.
Not really a bug but, when needing to input into the textbox, it needs to be really exact (in regards to spaces and stuff, especially for trading)
The GUI display doesn't look too nice, the top row doesn't show the number.
You have to hover over the tile to clear the black dots which represent the players because it lags in removing it from the button.
If the player is on a tile with the same color as its dot, you can't see it.
The log on the side doesn't keep going when it reaches the max.
Some features that we couldn't implement:
Property going up to aunction when it is not bought.
Mortgaging at anytime, and unmortgaing at any time.
Unmortgaing.


Directions on how to compile and run the code:
cd into Cards/
javac Board.java
java Board


Directions on how to run the program:
Follow the messages on the middle of the board.

About

APCS1 Final Project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages