8000 GitHub - sid-sg/SudokuX: ImGui based Desktop native + WebAssembly Sudoku app with puzzle gen and solving algos (Backtracking, Simulated annealing & Dancing Links)
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ SudokuX Public

ImGui based Desktop native + WebAssembly Sudoku app with puzzle gen and solving algos (Backtracking, Simulated annealing & Dancing Links)

Notifications You must be signed in to change notification settings

sid-sg/SudokuX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Preview video

SudokuXFinal_compressed.mp4

SudokuX: GUI Sudoku Generator & Solver

A high performance Sudoku Puzzle Generator and Solver with an interactive GUI — built using C++, ImGui, OpenGL, GLFW for native desktop and ported to the web using WebAssembly (WASM + Emscripten).

✨ Features

  • Sudoku Puzzle Generation (with difficulty control: Easy to Impossible)
  • Multiple Solving Algorithms:
    • Backtracking
    • Simulated Annealing
    • Knuth’s Dancing Links (DLX) (blazing fast)
  • User Play Mode — Solve manually with real-time constraint validation
  • Benchmark Mode — Compare algorithm performance (execution time measured)
  • Interactive GUI built using ImGui + OpenGL + GLFW
  • Web version via WebAssembly
  • Timer, Restart, Clear Cell options in User Mode

🚀 Build Instructions

📦 Native Desktop Build (Linux / Mac / Windows)

Prerequisites:

  • CMake 3.10+
  • C++17 compatible compiler (tested with Clang)
  • OpenGL + GLFW + ImGui

Steps:

git clone https://github.com/sid-sg/SudokuX.git
cd SudokuX
mkdir build && cd build
cmake ..
make
./sudokuSolver

🌐 WebAssembly Build (WASM)

Prerequisites:

  • Emscripten SDK (latest version)

Setup & Build:

source /path/to/emsdk/emsdk_env.sh # Replace with your actual path
emcmake cmake -B webAssembly
cmake --build webAssembly

Run locally via emrun:

emrun --no_browser --port 8000 webAssembly/sudokuSolver.html

Then open:
👉 http://localhost:8000/webAssembly/sudokuSolver.html

About

ImGui based Desktop native + WebAssembly Sudoku app with puzzle gen and solving algos (Backtracking, Simulated annealing & Dancing Links)

Topics

Resources

Stars

Watchers

Forks

0