Metadata-Version: 2.4
Name: lzc
Version: 0.1.0
Summary: A Sudoku game for terminal with colorful output
Home-page: https://github.com/openclaw/lzc
Author: OpenClaw
Author-email: openclaw@example.com
Project-URL: Bug Reports, https://github.com/openclaw/lzc/issues
Project-URL: Source, https://github.com/openclaw/lzc
Keywords: sudoku puzzle game terminal cli
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Games/Entertainment :: Puzzle Games
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license-file
Dynamic: project-url
Dynamic: requires-python
Dynamic: summary

# Lzc - 终端数独游戏

一个运行在终端的彩色数独游戏，支持三种难度级别！

## 特性

- 🎯 三种难度：简单、中等、困难
- 🌈 彩色终端输出
- ⌨️ 键盘控制（WASD或方向键）
- 💡 提示功能
- ✓ 答案检查
- 🔄 重置/新游戏
- 💻 跨平台支持

## 安装

```bash
pip install lzc
```

## 开始游戏

```bash
lzc
# 或
sudoku
```

## 操作说明

| 按键 | 功能 |
|------|------|
| 1-9 | 填入数字 |
| 0/X | 清空格子 |
| W/↑ | 向上移动 |
| S/↓ | 向下移动 |
| A/← | 向左移动 |
| D/→ | 向右移动 |
| H | 获取提示 |
| C | 检查答案 |
| R | 重置游戏 |
| N | 新游戏 |
| Q | 退出 |

## 游戏目标

在 9×9 的网格中填入数字 1-9，满足：
- 每行包含 1-9 且不重复
- 每列包含 1-9 且不重复
- 每个 3×3 宫格包含 1-9 且不重复

## Python 代码使用

```python
from lzc import Sudoku

# 创建游戏
game = Sudoku(difficulty='medium')

# 获取/设置格子
game.get_cell(row, col)
game.set_cell(row, col, value)

# 检查是否完成
if game.is_complete():
    print("完成！")

# 获取提示
row, col, value = game.get_hint()
```

## 截图

```
=====================================
        数 独 游 戏
=====================================

+-------+-------+-------+
| 5 3   |   7   |       |
| 6     | 1 9 5 |       |
|   9 8 |       |   6   |
+-------+-------+-------+
| 8     |   6   |     3 |
| 4     | 8   3 |     1 |
| 7     |   2   |     6 |
+-------+-------+-------+
|   6   |       | 2 8   |
|       | 4 1 9 |     5 |
|       |   8   |   7 9 |
+-------+-------+-------+
```

## 许可证

MIT License
