Tacitor / ICS4U-Settlers-Of-Catan

A Settlers Of Catan clone entirely in Java without the use of an game engine or frameworks.
GNU General Public License v3.0
5 stars 0 forks source link

Build City is option when it is not. #140

Closed Tacitor closed 2 years ago

Tacitor commented 2 years ago

Describe the bug The build button and Radio button to select City are options even when the player does not have the room to make the upgrade.

To Reproduce Steps to reproduce the behavior:

  1. Have a player with all cities and no settlements
  2. Have the resources needed to make a new city.
  3. Click on the build button with "City" selected
  4. See error. The game entered build mode but there are no settlements to upgrade to a city.

Expected behaviour The build button should not be enabled

Desktop (please complete the following information):

Tacitor commented 2 years ago

Fixed with commit a189f8218f53fbb1ebf9fab100342dd56a46fd1c