Skip to content

icecream17/solver

Repository files navigation

solver

codecov build CodeFactor

A simple sudoku solver I made. This is inspired by https://sudokuwiki.org/.

how to install / starting development

Install node, it comes with npm.

Try npm -i npm@latest to update npm -- if there's a "not recognized" error, search stackoverflow about adding node to path.

npm -i yarn

yarn

Congrats! You've installed all the depedencies!

You can try the current dev code with yarn start

file structure

Hopefully the folders are helpful and the code is clear enough.
If you have any feedback feel free to post an issue or something.

For example, the actual code is in src\, and the strategies are in src\Api\Strategies.

Idea: Separate this repo into 4 packages

  1. core / shared stuff
  2. sudoku (and related react components)
  3. solver api
  4. website (all combined together)

Plus, at some point I'd want to support variants: https://github.com/dclamage/SudokuSolver

yarn

This project uses yarn. It's probably also possible to install with npm.

Silly dependency note

This projects is compatible with its latest dependencies' versions, though sometimes I didn't bother to make it not compatible with older versions.

And even then, sometimes those dependencies themselves aren't updated.

Current status: ➤ YN0001: No audit suggestions

You can run yarn install and then yarn npm audit for the full report.

Node version

This project does not seem to use node, but just in case, this uses Set.prototype.isSubsetOf, so your node version must be >=22.0.0.

Also, @types/node is usually on one of the latest versions, since github actions eventually deprecates old versions of node. If @types/node is incompatible with an earlier version of node, you can try downgrading the dependency, or post an issue if it doesn't work. Alternatively, if you're on gitpod run nvm install 16 or higher.

About

A sudoku solver using logical strategies made with create react app.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published