Repository navigation
Order the steps by area; kind filter with the interface hidden; short-screen menu order - #18
Merged
Merged
Conversation
…en, regroup the short-screen menu Steps: - Order every step by area: the one nearest the last step's tiles, ties in reading order. Power no longer orders them (the island is built out whole either way); the plan still stops at the solve's power. "Most power" becomes "By area", and a stored "power" order reads as it. - A swap that sends both buildings home goes first: two moves in one. - A swap that lands a building where its own kind is still to be built keeps it there and sends the build on, instead of moving it off and buying another for the tile it left. - Pair a kind's spare leavers and arrivals so a tile is one replace rather than a sale and a build. - Boards are scored once per step rather than per candidate (except By kind). On 35 real islands against their solves: 3002 -> 2935 steps, 3.3 -> 1.0 tiles between steps, jumps over 4 tiles 37% -> 3%. Interface: - With the interface hidden, the kind filter stays at the bottom centre on the solver's board. - The readout's menu on a short screen is ordered by use: Hide interface and Center view; Steps, Copy, Share, Save as image; Island stats, Import, Transfer, Settings; map size; Discard last but one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Steps mode
The steps used to be ordered by power, so consecutive steps hopped between distant parts of the island (a swap in the south, then the north, then the south again). The island ends up built out whole either way, so the order now aims for few steps and an easy route.
Measured on 35 real islands from the game-export fixtures, each planned against a fresh solve:
Power now rises more slowly during the plan. That's intended: the island is built out whole either way.
Interface
Testing
npm test: 1,208 tests pass. New planner tests cover each change, and each fails on the old code. The tests that pinned the power order now pin the area order.npm run check, knip and prettier are clean.