Skip to content
This repository has been archived by the owner on Sep 25, 2023. It is now read-only.

cohenchris/sudoku-solver

Repository files navigation

Sudoku Solver in C++

Created by Chris Cohen on 12/17/19

Solving Algorithms

  • SINGLE CANDIDATE
    • If a Cell has a single candidate, solve for that Cell with that candidate
  • UNIQUE IN ROW/COL/SECTOR
    • If a Cell has a unique value in its row/col/sector, solve for that Cell with the unique value
  • UNIQUE PAIR IN SECTOR
    • If there are 2 Cells with a matching pair of possibilities, those two Cells must contain those values
    • If the Cells are in the same row/col, both of the values in that pair can be eliminated from that row/col
  • BRUTE FORCE
    • Recursive function that guesses a candidate for a Cell if stuck, and attempts to keep going as normal
    • If all candidates for a Cell are attempted and none work, board is unsolvable

About

Sudoku solver written in C++

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published