Closed spectrachrome closed 5 months ago
Will take a look. Thank you for the review!
The following things have been implemented and/or fixed 😊
Just now I managed to get a small-ish (181KB) low-resolution GeoJSON of common European countries, which I will now use to tackle the intersection testing and "altseed" generation in order to prevent water-only, instant-solve games.
@spectrachrome Thank you for the enhancements and for finding a solution to the eu countries.
Just a minor point regarding the mine count. We want to show the (number of existing mines - number of flagged spaces) - as in any other minesweeper.
This pull request contains a few updates for the Wildlife indicator in the IDEAS branch:
Changes
Species List
When the Wildlife indicator is active, either as part of a Minesweeper game or with the standard indicator, display species information for the relevant area in the game dialog or the sidebar, respectively.
Land Intersection Fix
The previously implemented bounding box randomization generated boxes which fell outside of data coverage with the new Europe dataset. This PR implements a fix which adjusts the seed programmatically in
while
loop until the bounding box intersects with the land mass of at least one country for which data is available.Total mines / set flags indicator
There is now an additional passive control available for users, near the reveal all button, displaying the total mine count minus the number of set flags.
Screenshot