Create Images in Sudoku Grids by marking certain cells.
The Sudoku Sudoku-Image-Generator is a tool that allows you to "draw" inside and empty sudoku grid by marking cells. It returns a valid and unique sudoku if it is possible with the marked cells.
- Generate Sudoku grids with embedded images
- Choose between two different selection modes
- Generate or solve sudokus
- Export results
/SudokuImageGeneration
βββ Backend/
β βββ data/
β βββ src/
β βββ main.rs
β βββ calculation.rs
β βββ constants.rs
β βββ difficulty.rs
β βββ sudoku.rs
β βββ sudoku_clauses.rs
β βββ .gitignore
β βββ Cargo.lock
β βββ Cargo.toml
β
βββ Frontend/
β βββ pics/
β βββ .gitignore
β βββ index.html
β βββ styles.css
β βββ sudoku.js
β βββ ui.js
β
βββ .gitignore
βββ README.md
- Install Rust and Cargo: https://www.rust-lang.org/tools/install
- Clone the repo and build the project:
git clone https://github.com/pavlvolk/SudokuImageGeneration.git
cd SudokuImageGeneration/Backend
cargo buildStart the Server first:
cargo runYou'll have to leave that terminal window open and use another one for the website. In the new terminal window:
cd SudokuImageGeneration/Frontend
xdg-open index.htmlNow you can use the website to its full capability!
Options include:
- Grid size (4x4, 6x6, 9x9)
- Sudoku Generator or Sudoku Solver mode
- Background Image (You can upload or remove a background image to aid with your drawing)
- You can either only mark cells or also add specific numbers at certain places
- The difficulty and number of marked cells for each sudoku will be displayed
- If a unique sudoku was found you can download the partial sudoku or the solution
-
This project uses cadical for SAT solving. We gratefully acknowledge the developers of cadical-rs for providing this library.
-
It also uses the sudoku-generator by stunmuffin.