GitHub - joise-s-arakkal/pygame-sudoku-solver: A Python-Pygame Sudoku solver with backtracking | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

joise-s-arakkal/pygame-sudoku-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pygame Sudoku Solver

This is a simple Sudoku solver built using Python and Pygame. The program allows users to visualize the solving process of a 9x9 Sudoku puzzle. You can also interactively solve the puzzle or check if a given puzzle has a solution.

Features

  • Visual representation of the Sudoku board.
  • Ability to solve the Sudoku puzzle with a click of a button.
  • Highlights solved cells in a different color.
  • Displays a message if the puzzle has no solution.

Requirements

  • Python 3.x
  • Pygame

Installation

  1. Clone the repository:
git clone https://github.com/joise-s-arakkal/pygame-sudoku-solver.git
cd pygame-sudoku-solver
  1. Install the required dependencies:
pip install pygame

Usage

  1. Run the game:
python3 sudoku_gui_v3.py
  1. A window will appear with a 9x9 Sudoku grid and a "Solve" button. Clicking the button will attempt to solve the puzzle.

File Structure

  • sudoku_gui_v3.py: Main file to run the Sudoku game with a GUI using Pygame.
  • sudoku_utils.py: Contains the utility functions for checking the safety of a number and solving the Sudoku using backtracking.
  • sudoku_config.py: Holds the board configuration and color settings.

Screenshots

Sudoku Solver

How It Works

  • The Sudoku board is drawn using Pygame.
  • The solve_sudoku() function uses a backtracking algorithm to solve the puzzle.
  • When the "Solve" button is pressed, the board gets solved in real-time, updating the display.

License License: MIT

This project is licensed under the MIT License - see the LICENSE file for details.

About

A Python-Pygame Sudoku solver with backtracking

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.