Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kkato/sudoku

数独
https://github.com/kkato/sudoku

Last synced: 1 day ago
JSON representation

数独

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.py

Problem 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

```