Code Monkey home page Code Monkey logo

sudoku_solving's Introduction

SUDOKU SOLVER

This repository contains a simple implementation of the classic Sudoku Solver using

  • Apache NetBeans IDE
  • Java Swing Library
  • AWT Library
  • Maven Dependency

Summary

  • The project is a game that allows the user to solve Sudoku puzzles.
  • The aim of the project is to recreate the experience of solving Sudoku puzzles that people used to do in newspapers.
  • The game consists of a 9x9 grid of boxes which are 9 rows and 9 columns, which are buttons that can be clicked to fill by selecting the digits from 1 to 9 in the box.
  • The game has a reset button, an exit button, a solution button, and a check moves button.
  • The reset button empties the whole grid, the exit button closes the execution, the solution button fills the grid with expected solutions, and the check moves button checks whether the previous moves are correct or not.

How It Looks

Home Page

home

Click the Get Started Button on the Home page screen to load the Sudoku Solver Game.

Sudoku Solver

gameplay

As the name indicates, the project is to solve a Sudoku puzzle, the ultimate game of patience and perseverance. Sudoku is a combinatorial number-placement puzzle with a 9 x 9 cell grid partially filled in with numbers from 1 to 9. The goal is to fill the remaining, blank fields with the rest of the numbers so that each row and column will have only one number of each kind.

How to Setup the Game

  • Just download the SUDOKU_Solving file from Sudoku Solver or from this link.
  • Run the jar file. You will be directed to the homepage.
  • Click on the "Get Started" button to start the game.
  • Now put your brain into solving the puzzle and enjoy the gameplay according to the "Gameplay" and "Game Functionalities" descriptions given below.
  • If the game is over, press the Reset button to start playing again. You can also press the X (close) button or Exit button and confirm by clicking "Yes" to exit, or "No" to replay.

Gameplay Overview With Snaps

Let you know about the friendly interface of the game panel, and how it looks from the top to bottom of the page and shows the numbers that are previously fed in the panels in different grid backgrounds. This also lets us know that the grids are already solved and non-editable. And it shows empty spaces where the numbers are to be fed.

No Number Selected Alert

This is the main image and this window or this point in time is letting us know that here you have selected no number with the popup and also mentions the feature added by me to the message which lets the player know that you need to select any number in between feeding the numbers.

numberseletion

Already Allocated Fields:

We can not enter any number into those fields which are already allocated.

selected

Start solving the puzzle

This stage is stage lets you enter the desired number in the blank spaces which you make ahead step to solve the sudoku, For the number 5 you select multiple numbers the more you move ahead in the game.

solving

Game Functionalities

There are four buttons with four main functionalities,

Check Moves:

This is the stage of the game that lets you know about the working or the quality checking of the. It will be transferred as the button named "Remove Wrong"

wrongmoves

Remove Wrong:

By clicking this button we can remove the wrong entry done by us, and then it will be transferred to "Check Moves" again.

solving

Solution:

This is the screen of the solution button which lets us be aware of the proper answer or the proper number entered at its proper place. After that, we can revome the solution by the same button but it is named "Hide Solution", After removing the solution it will transfer to "Solution" again.

solved checksolution

Reset:

This is also a good feature of our project which lets you know about the reset button or reset facility It clears numbers whether you have solved it or not.

reset

Exit:

This is a button where we get the feature of checking the capability of the exit button which first asks you to exit (y/n) yes or no. Then you select the proper term and move ahead.

exit

Upcoming Updates

  • A random puzzle will be generated after every time reset.
  • Every puzzle will be solved by the sudoku-solving algorithm using backtracking and recursion.
  • After solving the puzzle correctly if you press on the "Check Moves" button it will show a pop-up with a "Congratulations" message and give options of Restarting with a new puzzle or to Exit.

References

  • IDE or text editor: Like Apache NetBeans IDE 18 etc.
  • Java runtime environments installed. Refer to Oracle's official documentation.
  • Get support and information about the Java language from Oracle.
  • Stay updated with the latest version releases at the official build.

sudoku_solving's People

Contributors

garaisourav12 avatar

Watchers

 avatar

Forkers

lal15aditi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.