Skip to content

A terminal-based C program to generate and solve Sudoku puzzles with customizable difficulty using backtracking algorithm.

Notifications You must be signed in to change notification settings

05-Jagritii/Suduko

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

Suduko generator & solver

This project is a console-based Sudoku Generator and Solver written in C. It allows users to generate Sudoku puzzles at varying difficulty levels and also solve custom Sudoku puzzles provided by the user.

Features

  • Sudoku Generator : Randomly generates a fully solved Sudoku puzzle, then removes cells based on difficulty to create a playable puzzle.
  • Sudoku Solver : Solves both generated and user-input puzzles using backtracking.
  • Difficulty Level : Adjustable between 40 to 65 blank cells for customized challenge level.
  • Validations Included : Ensures that each generated puzzle has a unique solution.

Technologies Used

  • Language: C
  • Libraries Used:
    • <stdio.h> – for input/output

    • <stdlib.h> – for memory management and random number generation

    • <stdbool.h> – for boolean logic

    • <time.h> – to seed the random number generator

How to compile and run

  1. Clone the repository
    git clone https://github.com/05-Jagritii/Suduko.git
    cd Suduko
  2. Compile the code using GCC
    gcc Suduko_final.c
    This generates a.exe file.
  3. Run the program
     .\a.exe

Project Structure

Suduko/
├── Suduko_final.c     
└── README.md 

Author

Jagriti Kanwar
Mail : kanwarjagriti21@gmail.com
LinkedIn : Jagriti Kanwar

About

A terminal-based C program to generate and solve Sudoku puzzles with customizable difficulty using backtracking algorithm.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages