Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Determining Difficulty While Generating #4

Open
erthium opened this issue Dec 16, 2023 · 0 comments
Open

Determining Difficulty While Generating #4

erthium opened this issue Dec 16, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@erthium
Copy link
Owner

erthium commented Dec 16, 2023

The first thing comes to mind is always the solver algorithm step count for deciding general difficulty of a puzzle.

From years of personal experience with Hashi, there are other options for determining the difficulty of the puzzle before creating it.

Which are:

  1. Having the island count (1-8) lower as possible: Higher island counts create ease for user since 8 has directly gives itself away, 7 cannot have any other bridge be on its way etc.
  2. Having the bridge lengths as short as possible: Longer bridges cut of the way of other islands and give them shorter direction options. Therefore lower bridges help the user way less and makes the puzzle more difficult.

To apply these, We need to create a scale for difficulty, add it as an input to the generator.

While creating random island counts and bridge lengths, according to the difficulty, longer bridges will have higher or lower percentage to be selected.

For island counts, as the difficulty is higher, generator algorithm will tend to create newer islands instead of extending the current ones.

@erthium erthium added the enhancement New feature or request label Dec 16, 2023
@erthium erthium self-assigned this Dec 16, 2023
@erthium erthium changed the title Determining Difficulty Determining Difficulty While Generating Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant