Skip to content

nicoxeye/Simulated-Annealing-Sudoku-C

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Simulated Annealing For Sudoku

The random sudoku board is generated by using functions from my previous project called 'Sudoku-C' :)

Passing your own board is also possible, just change

int grid[SIZE][SIZE];

into your own 9x9 sudoku board filled with 0's as the gaps.


BUILDING THE APP:

gcc main.c sudoku.c -o sa_solvedsudoku

run either the .exe app in the folder or by cmd


RANDOM SUDOKU BOARD SOLVED SCREENSHOT

image

VIDEOS I USED FOR LEARNING:

https://www.youtube.com/watch?v=eBmU1ONJ-os (the best one that helped me really understand the concept as a whole) https://www.youtube.com/watch?v=FyyVbuLZav8 (explains how to approach the algorytm with sudoku)

USEFUL SITES:

Simulated Annealing Explained Baeldung
Solving Sudoku with Simulated Annealing