The main purpose behind this project was to develop an AI agent that is capable of solving any Sudoku Puzzle presented to it. In order to do this, we must implement an important method known as the backtracking algorithm. The entirety of this program including the algorithm implementation was developed in Python.
This is the hard-coded sudoku puzzle that was manually made in a Python text file for the AI agent to solve. The sudoku puzzle does not have to be set with specific values, it can be random throughout the entire board.
We started with an Incomplete board:
1. Search for empty space.
2. Place a digit between 1-9 in the space
3. Validate the numbers position based on the current board’s situation
4. If the # is valid, recursively repeat steps 1-3, if not, reset current location value and repeat the previous step.
This is the final result of our sudoku puzzle after executing the AI agent. Is obvious that the sudoku puzzle is not entirely complete, however, the AI agent managed to complete a good percentage of the table which was correct. Therefore, the AI agent was half complete and may need more troubleshooting.
Copyright © 2021 Muad Sakah Productions - All Rights Reserved.
All content was done and designed by Muad Sakah
We use cookies to analyze website traffic and optimize your website experience. By accepting our use of cookies, your data will be aggregated with all other user data.