Skip to content

FelipeWoo/bot_sudoku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sudoku Solver

This is a Sudoku solver script that automates the solving process using Selenium and Python. It is a bot scraper that reads a Sudoku puzzle from a web page and solves it. The solved solution is then automatically filled in on the Sudoku web page.

Instructions

To use the Sudoku solver, follow the instructions below:

Installation

  1. Install virtualenv:

    $ pip install virtualenv
  2. Create a virtual environment with the name "sudoku":

    $ virtualenv sudoku
  3. Activate the virtual environment:

    $ source ./sudoku/bin/activate
  4. Install the required dependencies:

    $ pip install -r requirements.txt

Setup WebDriver

  1. Download the compatible version of ChromeDriver based on your Google Chrome version from https://chromedriver.chromium.org/.

  2. Unzip the downloaded file.

  3. Make the ChromeDriver executable:

    $ chmod +x ./chromedriver
  4. Move the ChromeDriver executable to the appropriate location:

    $ sudo mv ./chromedriver /usr/local/share/chromedriver
  5. Create symbolic links:

    $ sudo ln -s /usr/local/share/chromedriver /usr/local/bin/chromedriver
    $ sudo ln -s /usr/local/share/chromedriver /usr/bin/chromedriver
  6. Verify the installation:

    $ chromedriver --version

Install Additional Packages

  1. Install PyAutoGUI:

    $ pip install pyautogui
  2. Install Tkinter:

    $ pip install tk
  3. For Linux, install additional dependencies:

    $ sudo apt-get install scrot
    $ sudo apt-get install python3-tk
    $ sudo apt-get install python3-dev

Running the Sudoku Solver

  1. Update the URL in the script (SolveSudoku) to the desired Sudoku puzzle source.

  2. Run the script:

    $ python sudoku_solver.py
  3. The solved Sudoku puzzle will be printed to the console, and the solution will be automatically filled in on the Sudoku web page.

That's it! You can now solve Sudoku puzzles automatically using this script. Enjoy!

About

Super bot para resilver Sudoku.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published