Skip to content

This repository contains cli and gui app to check backtracking and sudoku map generation and solution.

Notifications You must be signed in to change notification settings

Hasnatrasool163/Sudoku_Solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku_Solver

This repository contains cli and gui app to check backtracking and sudoku map generation and solution.

Sudoku Solver GUI

A simple, interactive Sudoku puzzle solver built with Java Swing. This application allows users to visually interact with the Sudoku board, offering features to reset the board to a new puzzle and solve the displayed puzzle automatically.

Features

  • Interactive Sudoku Board: A 9x9 grid where users can view the puzzle.
  • Solve Puzzle: Automatically solves the displayed Sudoku puzzle.
  • Reset Puzzle: Resets the board to a new, randomly generated Sudoku puzzle.
  • Visual Updates: Real-time visual feedback during the solving process.

Getting Started

##ScreenShots

Screenshot (799)

Screenshot (800)

Prerequisites

Ensure you have Java installed on your system. You can check your Java version by running:

java -version

If Java is not installed, follow the official Java Installation Guide.

Running the Application
Clone the repository or download the source code.
Navigate to the directory containing the SudokuGUI.java file.
Compile the Java program:

javac SudokuGUI.java
Run the compiled Java program:

java SudokuGUI
The Sudoku GUI should now open, displaying a randomly generated puzzle ready for interaction.

How It Works
The Sudoku Solver utilizes a backtracking algorithm to fill the Sudoku board with valid numbers.
The Puzzle Generator randomly fills the board with numbers and then removes a certain number of elements to create a solvable Sudoku puzzle.
Users can reset the board at any time to get a new puzzle or solve the current puzzle on the board.

Contributing
Contributions are welcome! Please feel free to submit pull requests, suggest features, or report bugs.

Acknowledgments
Thanks to the Java Swing toolkit for making GUI development accessible and straightforward.
Appreciation for the Sudoku puzzle community for continuous inspiration and challenges.

About

This repository contains cli and gui app to check backtracking and sudoku map generation and solution.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages