CSC207-2022F-UofT / course-project-monopolymen

Java Swing full recreation of Monopoly in the Clean Architecture
5 stars 3 forks source link

[TradeUseCase Can Trade Properties With Houses] #82

Closed TahirLeonenko closed 1 year ago

TahirLeonenko commented 1 year ago

In the TradeOffer class, the checkPropertiesRecieved/Offered only checks whether the player owns the property. Players also cannot trade properties if any of the color properties have houses on them (even if you sell a colorProperty that doesn't have a house on it, you need to make sure that the other colorPropertys that the player owns doesn't have houses on them.

colewiltse commented 1 year ago

Fixed it!