Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Create (fallback) SATSolver Solutionfinder

Open
#2 0 comments 0 reactions 1 assignee View on GitHub

@Mikescher is already working on this.

Since Oct 18, 2020.

Assessment

This issue has not been assessed yet.

Description

enhancement

(Thanks to Oliver for sending me the problematic puzzle per email)

The puzzle #16230509 can't currently be fully solved by the HexSolver algorithm.
Either the current algo must be (drastically) improved or we add a second (slower) fallback step that uses some kin dof off-the-shelf SAT solver to also find these really hard solution steps

Hexcells_16230509-1

Explanation (from Oliver) how to argue the next solution step:
Start by assuming the blue-circled hex is blue. It's in the radius of the blue 4. This means all four blue cells in that radius are accounted for, even if we don't know exactly where they are, since the black 4 to the upper-right must have two blue cells inside the radius. That means a lot of cells are forced into being either black or blue respectively, as shown by the dots on each cell. This eventually leads to a contradiction between the two red-circled conditions which can't be satisfied simultaneously. Therefore, we reject the assumption and the initial blue-circled hex must in fact be black.

Hexcells_16230509_solution

The current algo is definitely not able to do such complex logic and needs to be improved.

Dominant language
C#
Stars
33
Forks
3
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Mikescher/HexSolver

All issues in Mikescher/HexSolver

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.