# Solving Every Sudoku Puzzle

DevFeed: [Solving Every Sudoku Puzzle](<https://devfeed.tech/articles/solving-every-sudoku-puzzle-40588.md>)

Original publisher: [Read original article](<http://norvig.com/sudoku.html>)

Published: 2006-05-25T00:00:00Z

Content type: tutorial

Language: en

Sources: [Peter Norvig](<https://devfeed.tech/sources/peter-norvig.md>)

Topics: [Python](<https://devfeed.tech/topics/python.md>), [Code](<https://devfeed.tech/topics/code.md>), [Data structures](<https://devfeed.tech/topics/data-structures.md>), [Programming](<https://devfeed.tech/topics/programming.md>)

Tags: [array](<https://devfeed.tech/tags/array.md>), [code](<https://devfeed.tech/tags/code.md>), [data-structure](<https://devfeed.tech/tags/data-structure.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [puzzle](<https://devfeed.tech/tags/puzzle.md>), [python](<https://devfeed.tech/tags/python.md>), [solve](<https://devfeed.tech/tags/solve.md>), [tests](<https://devfeed.tech/tags/tests.md>)

## AI overview

A tutorial explaining how to solve Sudoku puzzles with Python using constraint propagation and search. It models squares, units, and peers, then represents puzzle states with dictionaries of possible values.

## Source excerpt

Python code and an explanation of how to solve any Sudoku puzzle.