Skip to content

My footsteps into Artificial Intelligence as I make this Sudoku Solver while learning AI online for the first time.

License

Notifications You must be signed in to change notification settings

rafi007akhtar/SudokuSolver

Repository files navigation

SudokuSolver

This repository contains an AI agent that can arguably solve any Sudoku puzzle in the world.

Demo

This is how you would run the project in VS Code.

Prerequisites

In order to try this out, your computer needs to have:

  1. Python 3 interpreter (preferebly 3.4 or above).
  2. An text-editor or an IDE. (I used Visual Studio Code.)
  3. A Terminal / CMD (VS Code has one built-in).
  4. (Optional) Pygame. Without Pygame, the program would still run, but you will only be able to see the solved board on the terminal, and not the visualizations.

Installation

  1. Clone the repository.
  2. Open a Terminal / CMD.
  3. cd your way through the root of the repository.
  4. Enter the following command.
        python solution.py
    

(If the above command didn't work, try replacing python with python3.)

To try it out with some other input, open solution.py and re-assign the varaible diag_sudoku_grid to your input board. The input is one, uninterrupted string with no spaces. The numbers are the numbers given on the board row-wise, and the periods represent an unfilled cell.

About

My footsteps into Artificial Intelligence as I make this Sudoku Solver while learning AI online for the first time.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages