Monopoly simulation engine
- represents all the squares/tiles of the board
- contains all the cities in the arraylist "tickets" called “tickets” and one for the Community Chest/ Chance cards called “commCards”.
- has 2 methods, setProp() to add Squares to the tickets arrayList and setCards() to add special cards to the commCards arrayList
- maintains every player's state - their wallet and properties.
- arrayList boughtProp holds the names of all the properties that the player owns.
- represents special cards
- objects of this card class will be stored in the commCards
- maintains the ongoing turn in the game
- represents the dice used for rolling
- roll() method generates a random integer from 2 to 12
- contains logic of the player
- implements runnable; each player runs on a separate thread
- arrayList players stores all the players.
- Square is available to buy and player has enough money, then player buys it
- Square is available to buy but player does not have enough money
- Square is already owned, so player pays rent
- Community Chest : Cards are stored in a stack which pops off the first element when a player picks a card and adds it to a random position in the stack afterwards
- Chance : same functioning as Community Chest
- GO
- Free Parking
- Jail
- Go To Jail