{"id":27063868,"url":"https://github.com/stephanfward/python-sodoku","last_synced_at":"2025-06-11T22:09:45.139Z","repository":{"id":208651034,"uuid":"722158708","full_name":"StephanFWard/Python-Sodoku","owner":"StephanFWard","description":"This Python project provides a Sudoku solver using a backtracking algorithm. Given a Sudoku puzzle, the code attempts to find a solution and modifies the grid in place.","archived":false,"fork":false,"pushed_at":"2023-11-22T15:04:57.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T16:38:20.726Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StephanFWard.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-11-22T15:01:23.000Z","updated_at":"2023-11-22T15:02:49.000Z","dependencies_parsed_at":"2023-11-22T16:28:16.535Z","dependency_job_id":"ce2bec38-471c-4eeb-a7b6-e3946344674e","html_url":"https://github.com/StephanFWard/Python-Sodoku","commit_stats":null,"previous_names":["stephanfward/python-sodoku"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/StephanFWard/Python-Sodoku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FPython-Sodoku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FPython-Sodoku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FPython-Sodoku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FPython-Sodoku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StephanFWard","download_url":"https://codeload.github.com/StephanFWard/Python-Sodoku/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StephanFWard%2FPython-Sodoku/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259353584,"owners_count":22844756,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-05T16:35:20.602Z","updated_at":"2025-06-11T22:09:45.122Z","avatar_url":"https://github.com/StephanFWard.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku Solver\n\nThis Python project provides a Sudoku solver using a backtracking algorithm. Given a Sudoku puzzle, the code attempts to find a solution and modifies the grid in place.\n\n## Usage\n\n1. Make sure you have Python installed on your system. You can download Python from [here](https://www.python.org/downloads/).\n\n2. Clone this repository to your local machine:\n\n   ```bash\n   git clone https://github.com/StephanFWard/Python-Sodoku.git\n\n   Navigate to the project directory:\n\n   cd Python-Sodoku\n\n   Run the Sudoku solver script:\n\n   python project.py\n\n   or for Python 3:\n\n   python3 project.py\n\n3. If a solution exists, the solved Sudoku grid will be displayed in the terminal. If no solution exists, a corresponding message will be printed.\n\nExample 1:\n\ngrid = [\n    [5, 3, 0, 0, 7, 0, 0, 0, 0],\n    [6, 0, 0, 1, 9, 5, 0, 0, 0],\n    [0, 9, 8, 0, 0, 0, 0, 6, 0],\n    [8, 0, 0, 0, 6, 0, 0, 0, 3],\n    [4, 0, 0, 8, 0, 3, 0, 0, 1],\n    [7, 0, 0, 0, 2, 0, 0, 0, 6],\n    [0, 6, 0, 0, 0, 0, 2, 8, 0],\n    [0, 0, 0, 4, 1, 9, 0, 0, 5],\n    [0, 0, 0, 8, 0, 0, 7, 9, 5]\n]\n\nWill console out \"No solution exists.\"\n\nwhereas Example 2:\n\ngrid = [\n    [0, 3, 4, 6, 0, 8, 9, 1, 0],\n    [0, 7, 2, 1, 9, 5, 3, 4, 8],\n    [0, 9, 8, 3, 4, 2, 5, 6, 7],\n    [0, 5, 9, 7, 6, 1, 4, 2, 3],\n    [4, 0, 6, 8, 5, 3, 7, 9, 1],\n    [7, 1, 0, 9, 2, 4, 8, 5, 6],\n    [9, 6, 1, 0, 3, 7, 2, 8, 4],\n    [2, 8, 7, 4, 0, 9, 6, 3, 5],\n    [3, 4, 50, 2, 8, 0, 1, 7, 9]\n]\n\nwill console out solution\n\n5 3 4 6 7 8 9 1 2\n6 7 2 1 9 5 3 4 8\n1 9 8 3 4 2 5 6 7\n8 5 9 7 6 1 4 2 3\n4 2 6 8 5 3 7 9 1\n7 1 3 9 2 4 8 5 6\n9 6 1 5 3 7 2 8 4\n2 8 7 4 1 9 6 3 5\n3 4 50 2 8 6 1 7 9\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Fpython-sodoku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephanfward%2Fpython-sodoku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephanfward%2Fpython-sodoku/lists"}