{"id":19403819,"url":"https://github.com/jwt2706/sudokusolver","last_synced_at":"2025-06-25T16:02:01.358Z","repository":{"id":216595289,"uuid":"741732913","full_name":"jwt2706/SudokuSolver","owner":"jwt2706","description":"Simple Sudoku game in Python with a built in auto solver.","archived":false,"fork":false,"pushed_at":"2024-02-17T04:44:58.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T12:45:23.032Z","etag":null,"topics":["python-game","sudoku-solver","terminal-game"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jwt2706.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-01-11T01:58:40.000Z","updated_at":"2024-04-16T12:30:31.000Z","dependencies_parsed_at":"2024-01-11T05:36:09.033Z","dependency_job_id":"555e20eb-208c-440b-80a4-a55423e88e56","html_url":"https://github.com/jwt2706/SudokuSolver","commit_stats":null,"previous_names":["jwt2706/sudoku","jwt2706/sudokusolver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt2706%2FSudokuSolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt2706%2FSudokuSolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt2706%2FSudokuSolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jwt2706%2FSudokuSolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jwt2706","download_url":"https://codeload.github.com/jwt2706/SudokuSolver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240580919,"owners_count":19824078,"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":["python-game","sudoku-solver","terminal-game"],"created_at":"2024-11-10T11:30:50.179Z","updated_at":"2025-02-25T00:30:21.370Z","avatar_url":"https://github.com/jwt2706.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sudoku\n\n## Overview\n\nThis is a simple Python Sudoku game with a built in autosolver. Sudoku is a logic-based puzzle game where the objective is to fill a 9x9 grid with digits so that each column, each row, and each of the nine 3x3 subgrids contains all of the digits from 1 to 9.\n\nThe solver included in the game uses a backtracking algorithm to find a solution to the Sudoku puzzle. It starts by finding an empty cell in the grid and tries numbers from 1 to 9. If a number is valid for the current cell, it places the number and recursively attempts to solve the remaining empty cells. If a solution is found, it returns `True`, and if no solution is found, it backtracks and tries a different number. The solver repeats this process until the puzzle is solved or all possibilities are exhausted.\n\n## Usage\n\nTo use the Sudoku solver, you can run `sudoku.py`. The script will generate a new Sudoku board and prompt the user to play or solve the board.\n\n```\nOriginal Sudoku board:\n1 2 3 | 0 5 0 | 0 8 9\n0 5 6 | 7 0 9 | 1 2 3\n7 8 9 | 1 0 0 | 0 0 6\n- - - - - - - - - - - -\n2 1 4 | 3 0 5 | 8 9 7\n0 0 5 | 8 0 0 | 2 1 4\n8 0 0 | 0 0 0 | 3 6 0\n- - - - - - - - - - - -\n0 0 1 | 0 4 2 | 9 0 8\n6 0 2 | 9 7 0 | 5 3 0\n9 7 0 | 5 0 1 | 6 0 2\n\nDo you want to play (p) or get the board solved (s)? Default is solving.\n```\nHere is an example if the user selected to autosolve the board:\n```\nSolving Sudoku...\nSudoku solved:\n1 2 3 | 4 5 6 | 7 8 9\n4 5 6 | 7 8 9 | 1 2 3\n7 8 9 | 1 2 3 | 4 5 6\n- - - - - - - - - - - -\n2 1 4 | 3 6 5 | 8 9 7\n3 6 5 | 8 9 7 | 2 1 4\n8 9 7 | 2 1 4 | 3 6 5\n- - - - - - - - - - - -\n5 3 1 | 6 4 2 | 9 7 8\n6 4 2 | 9 7 8 | 5 3 1\n9 7 8 | 5 3 1 | 6 4 2\n```\n\nIf you choose to play (`p`), you will be prompted to enter the row, column, and number to place in the Sudoku board. The program will check if the move is valid and update the board accordingly. If you solve the entire Sudoku board, you will see a congratulatory message.\n\nIf you choose to get the board solved (`s`), as demonstrated above, the program will attempt to solve the Sudoku board and display the solution.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwt2706%2Fsudokusolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjwt2706%2Fsudokusolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjwt2706%2Fsudokusolver/lists"}