Skip to content

A simple Sudoku board generator and solver with 3 levels of difficulty.

License

Notifications You must be signed in to change notification settings

azdrenymeri/sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Game

This repository contains the source code for the Sudoku game. The game features core functionalities like board generation, solving algorithm, and difficulty levels(0,1,2) for generating puzzles.

Puzzle

  ╔═══╤═══╤═══╦═══╤═══╤═══╦═══╤═══╤═══╗
  ║ 9 │ 5 │   ║ 2 │   │ 4 ║ 6 │ 3 │ 7 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 3 │   │   ║ 6 │ 8 │ 5 ║ 1 │   │   ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 6 │ 1 │ 2 ║   │ 7 │ 9 ║ 4 │ 8 │   ║
  ╠═══╪═══╪═══╬═══╪═══╪═══╬═══╪═══╪═══╣
  ║   │ 3 │ 5 ║   │   │   ║   │   │   ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║   │ 8 │ 1 ║   │ 5 │ 3 ║   │ 6 │ 2 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 4 │ 9 │ 6 ║   │ 2 │   ║ 5 │ 1 │ 3 ║
  ╠═══╪═══╪═══╬═══╪═══╪═══╬═══╪═══╪═══╣
  ║ 1 │ 6 │ 3 ║ 9 │ 4 │ 2 ║ 7 │ 5 │   ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 5 │ 2 │ 4 ║   │   │   ║ 3 │ 9 │ 1 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║   │   │ 9 ║ 5 │   │ 1 ║   │ 4 │ 6 ║
  ╚═══╧═══╧═══╩═══╧═══╧═══╩═══╧═══╧═══╝

Solved

  ╔═══╤═══╤═══╦═══╤═══╤═══╦═══╤═══╤═══╗
  ║ 9 │ 5 │ 8 ║ 2 │ 1 │ 4 ║ 6 │ 3 │ 7 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 3 │ 4 │ 7 ║ 6 │ 8 │ 5 ║ 1 │ 2 │ 9 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 6 │ 1 │ 2 ║ 3 │ 7 │ 9 ║ 4 │ 8 │ 5 ║
  ╠═══╪═══╪═══╬═══╪═══╪═══╬═══╪═══╪═══╣
  ║ 2 │ 3 │ 5 ║ 1 │ 9 │ 6 ║ 8 │ 7 │ 4 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 7 │ 8 │ 1 ║ 4 │ 5 │ 3 ║ 9 │ 6 │ 2 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 4 │ 9 │ 6 ║ 7 │ 2 │ 8 ║ 5 │ 1 │ 3 ║
  ╠═══╪═══╪═══╬═══╪═══╪═══╬═══╪═══╪═══╣
  ║ 1 │ 6 │ 3 ║ 9 │ 4 │ 2 ║ 7 │ 5 │ 8 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 5 │ 2 │ 4 ║ 8 │ 6 │ 7 ║ 3 │ 9 │ 1 ║
  ╟───┼───┼───╫───┼───┼───╫───┼───┼───╢
  ║ 8 │ 7 │ 9 ║ 5 │ 3 │ 1 ║ 2 │ 4 │ 6 ║
  ╚═══╧═══╧═══╩═══╧═══╧═══╩═══╧═══╧═══╝

About

A simple Sudoku board generator and solver with 3 levels of difficulty.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages