mirror of
https://github.com/Leonmmcoset/CMLeonOS.git
synced 2026-03-03 15:30:27 +00:00
贪吃蛇+修改命令提示符
This commit is contained in:
@@ -817,6 +817,23 @@ labyrinth
|
||||
- 出口位置用红色 E 表示
|
||||
- 迷宫使用递归回溯算法随机生成
|
||||
|
||||
### snake
|
||||
玩贪吃蛇游戏。
|
||||
|
||||
**用法:**
|
||||
```bash
|
||||
snake
|
||||
```
|
||||
|
||||
**说明:**
|
||||
- 使用方向键 (↑ ↓ ← →) 控制蛇的移动
|
||||
- 按 ESC 或 Q 键退出游戏
|
||||
- 蛇身用绿色 ■ 表示
|
||||
- 食物用红色 ● 表示
|
||||
- 吃到食物得分 +10 分
|
||||
- 撞到墙壁或自己身体游戏结束
|
||||
- 游戏区域:40x20 字符
|
||||
|
||||
### diff
|
||||
比较两个文件的差异。
|
||||
|
||||
|
||||
Reference in New Issue
Block a user