Game Monopoly Light in Java (OOP)
The simplified game "Monopoly" is a console game on Java.The size of the game field is 24 squares, of which:
1) 4 corner sections (Party, Prison, Police (Send to Prison) and Tax Payment)
2) 4 sections of "Chans" (must be at least 5 cards),
16 Property Property.The game begins with the selection of the number of players and their names.After entering the names of all the players the game begins, and the first player throws the bones.After throwing the cubes, the player moves as many squares as he throws the cubes.When the player arrives on a square, the action of that square is performed.Certain actions :
The Prison – Visit to the Prison
2) Police - Prisoning of a player for X rounds
3) Payment of the tax - the player must pay a certain amount
4) Field of Opportunity - the player takes the card and performs the action specified for the card (the player always takes a new card from the bar and not the random, when the cards end, we start using it again).5) Real Estate - the player can buy a square for a certain amount, if it is still not belonging to anyone and there is money on it.If the square already belongs to another player, he must pay him for being on the square before the next throw.Each facility has a predefined price and the cost of rental.Each player will receive a certain amount during the transition.A player who has no money to pay taxes or permanent fees has lost.The game ends when only one player remains in the game.
1) 4 corner sections (Party, Prison, Police (Send to Prison) and Tax Payment)
2) 4 sections of "Chans" (must be at least 5 cards),
16 Property Property.The game begins with the selection of the number of players and their names.After entering the names of all the players the game begins, and the first player throws the bones.After throwing the cubes, the player moves as many squares as he throws the cubes.When the player arrives on a square, the action of that square is performed.Certain actions :
The Prison – Visit to the Prison
2) Police - Prisoning of a player for X rounds
3) Payment of the tax - the player must pay a certain amount
4) Field of Opportunity - the player takes the card and performs the action specified for the card (the player always takes a new card from the bar and not the random, when the cards end, we start using it again).5) Real Estate - the player can buy a square for a certain amount, if it is still not belonging to anyone and there is money on it.If the square already belongs to another player, he must pay him for being on the square before the next throw.Each facility has a predefined price and the cost of rental.Each player will receive a certain amount during the transition.A player who has no money to pay taxes or permanent fees has lost.The game ends when only one player remains in the game.