WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

farid-kheli/sudoku-solver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Sudoku Solver with Selenium

Python
Selenium
License

A powerful Sudoku solver built with Selenium. This tool automates the process of solving Sudoku puzzles directly on a webpage. It extracts the grid from the webpage, solves it using an efficient backtracking algorithm, and inputs the solution back into the webpage.


πŸš€ Features

  • Automated Grid Extraction: Reads the Sudoku grid directly from the webpage.
  • Efficient Solving Algorithm: Utilizes a backtracking algorithm to solve puzzles quickly.
  • Seamless Web Interaction: Automatically fills the solved grid back into the webpage.

πŸ“‹ Prerequisites

  • Python 3.x
  • Selenium
  • ChromeDriver

πŸ› οΈ Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/sudoku-solver.git
    cd sudoku-solver
  2. Install dependencies:

    pip install selenium
  3. Set up ChromeDriver:

    • Download ChromeDriver from Google Chrome Labs.
    • Place the chromedriver executable in the project directory. Ensure it is in the same location as your Python script.

πŸ“– Usage

  1. Open the script and confirm that the executable_path in the Service object points to your chromedriver file.

  2. Run the script:

    python sudoku.py
  3. Watch as the script:

    • Launches a browser.
    • Navigates to the Sudoku puzzle webpage.
    • Extracts, solves, and fills in the solution.

🧠 How It Works

  1. Extract the Sudoku Grid: Reads the grid structure from the webpage.
  2. Solve the Sudoku: Implements a backtracking algorithm to compute the solution.
  3. Fill the Sudoku Grid: Inputs the solved values back into the webpage.

🀝 Contributing

Contributions are always welcome! If you have suggestions, encounter issues, or want to enhance the project, feel free to:

  • Open an issue
  • Submit a pull request

πŸ“„ License

This project is licensed under the MIT License. See the LICENSE file for more information.

VidΓ©o sans titre ‐ RΓ©alisΓ©e avec Clipchamp (2)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages