Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kkato/sudoku
数独
https://github.com/kkato/sudoku
Last synced: 1 day ago
JSON representation
数独
- Host: GitHub
- URL: https://github.com/kkato/sudoku
- Owner: kkato
- Created: 2024-09-22T09:00:33.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-01T14:57:38.000Z (14 days ago)
- Last Synced: 2024-11-01T15:34:04.198Z (14 days ago)
- Language: Python
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sudoku
This program is a Sudoku puzzle generator created in Python. It generates both a 9x9 Sudoku puzzle and its solution.
## 使用方法
1. Clone this repository
```bash
git clone https://github.com/kkato/sudoku.git
cd sudoku
```2. Run the program
```bash
python3 sudoku.py
```## 実行例
```console
% python3 sudoku.pyProblem Answer
. 5 3 | . 9 1 | . . 4 8 5 3 | 7 9 1 | 6 2 4
2 6 7 | 8 3 . | 5 . . 2 6 7 | 8 3 4 | 5 9 1
9 1 4 | . 5 2 | 3 . 8 9 1 4 | 6 5 2 | 3 7 8
---------------------- ---------------------
7 2 . | . 6 . | . 4 5 7 2 1 | 3 6 8 | 9 4 5
. 8 9 | 2 1 5 | . 6 . 4 8 9 | 2 1 5 | 7 6 3
5 . . | 9 4 7 | . . 2 5 3 6 | 9 4 7 | 1 8 2
---------------------- ---------------------
1 . . | 4 . 9 | . 3 6 1 7 5 | 4 8 9 | 2 3 6
. . 2 | 5 . . | 8 1 . 3 4 2 | 5 7 6 | 8 1 9
. . 8 | 1 2 3 | . 5 7 6 9 8 | 1 2 3 | 4 5 7```