Skip to content

Commit 13b17a0

Browse files
committed
docs: add minesweeper
1 parent 9af598c commit 13b17a0

4 files changed

Lines changed: 69 additions & 1 deletion

File tree

docs/.vitepress/sidebar.mts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -403,6 +403,10 @@ export const enSidebar = [
403403
text: '2048',
404404
link: '/guide/official-games/2048',
405405
},
406+
{
407+
text: 'Minesweeper',
408+
link: '/guide/official-games/minesweeper',
409+
},
406410
],
407411
},
408412
{
@@ -890,6 +894,10 @@ export const zhSidebar = [
890894
text: '2048',
891895
link: '/zh/guide/official-games/2048',
892896
},
897+
{
898+
text: '扫雷',
899+
link: '/zh/guide/official-games/minesweeper',
900+
},
893901
],
894902
},
895903
{
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# tinker-minesweeper
2+
3+
Clear the minefield without detonating a bomb! A retro-style puzzle game for [TINKER](https://github.com/liriliri/tinker).
4+
5+
![Screenshot](https://raw.githubusercontent.com/liriliri/tinker-games/master/packages/tinker-minesweeper/screenshot.png)
6+
7+
## Features
8+
9+
- **Authentic retro look** — hand-drawn Windows XP aesthetic with beveled borders, sunken displays, and the iconic smiley face button
10+
- **Three difficulty levels** — Beginner (9x9), Intermediate (16x16), and Expert (16x30)
11+
- **First-click safe** — mines are placed after your first tap, so you never lose on the opening move
12+
- **Smart auto-reveal** — clicking an empty cell flood-fills all connected safe tiles with numbered hints
13+
- **Play your way** — full keyboard modifiers, mouse, and touch support with long-press to flag
14+
- **Bilingual** — fully localized in English and Chinese
15+
16+
## Installation
17+
18+
Download and install [TINKER](https://tinker.liriliri.io/), then run:
19+
20+
```bash
21+
npm i -g tinker-minesweeper
22+
```
23+
24+
## How to Play
25+
26+
1. Open the **Minesweeper** plugin in TINKER
27+
2. Tap any cell to reveal it — numbers tell you how many mines are nearby
28+
3. Long-press or right-click to **flag** a suspected mine, right-click again to mark as unknown
29+
4. Use **chord** (middle-click or Ctrl+click on a revealed number) to auto-open neighbors when you've placed enough flags
30+
5. Reveal all safe cells without hitting a mine — **lights out** if you blow one up!
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# tinker-minesweeper
2+
3+
避开地雷,清空所有安全格子!一款 [TINKER](https://github.com/liriliri/tinker) 复古风益智游戏插件。
4+
5+
![截图](https://raw.githubusercontent.com/liriliri/tinker-games/master/packages/tinker-minesweeper/screenshot.png)
6+
7+
## 特性
8+
9+
- **经典复古外观** — 手绘风格的 Windows XP 美学,带有凸起边框、凹陷显示屏和标志性的笑脸按钮
10+
- **三种难度级别** — 初级 (9x9)、中级 (16x16) 和专家 (16x30)
11+
- **首次点击安全** — 地雷在你第一次点击后才会放置,开局永远不会踩雷
12+
- **智能自动展开** — 点击空格会自动展开所有相邻的安全格子并显示数字提示
13+
- **多样操作方式** — 完整的键盘快捷键、鼠标和触屏支持,长按标记地雷
14+
- **双语支持** — 完整的中英文界面本地化
15+
16+
## 安装
17+
18+
下载并安装 [TINKER](https://tinker.liriliri.io/),然后运行:
19+
20+
```bash
21+
npm i -g tinker-minesweeper
22+
```
23+
24+
## 玩法
25+
26+
1. 在 TINKER 中打开 **扫雷** 插件
27+
2. 点击任意格子翻开它 — 数字表示附近有多少颗地雷
28+
3. 长按或右键点击可疑的格子**插旗**标记,再次右键标记为未知
29+
4. 使用**双击**(中键或 Ctrl+点击已显示数字的格子)自动翻开所有相邻格子(当已放置足够旗子时)
30+
5. 翻开所有安全格子且不踩雷 — 踩到地雷可就**熄灯了**

tinker-games

Submodule tinker-games updated 34 files

0 commit comments

Comments
 (0)