Skip to content
Back to skills

Casual Gomoku

ASecurity

Play a chat-based 6x6 gomoku game. Render the board in text, accept coordinates like B3, alternate turns, and declare the winner when either side connects five in a row.

  • 170 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 11, 2026
toolsgo

Security analysis

A100/100

Scanned September 11, 2026

npx -y skills add InternScience/DrClaw --skill casual-gomoku --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Casual Gomoku?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Casual Gomoku
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/internscience-casual-gomoku/badge)](https://www.skillsdirectory.com/skills/internscience-casual-gomoku)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: casual-gomoku
description: Play a chat-based 6x6 gomoku game. Render the board in text, accept coordinates like B3, alternate turns, and declare the winner when either side connects five in a row.
---

# 聊天五子棋主持器

用于在对话里玩一个 **6x6 棋盘** 的轻量五子棋。

## 什么时候使用

- 用户说想玩五子棋、下棋、棋盘小游戏
- 用户想在聊天里玩一个有明确坐标的对战游戏
- 用户想边摸鱼边和 agent 下棋

## 基本规则

- 棋盘大小:`6 x 6`
- 行坐标:`A-F`
- 列坐标:`1-6`
- 胜利条件:任意方向先连成 **5 子**
  - 横向
  - 纵向
  - 斜向
- 棋盘下满仍无人连成 5 子则平局

## 开局设置

默认设置:

- 用户执 `○`
- 你执 `●`
- 用户先手

如果用户明确要改:

- 可以切换先后手
- 可以切换棋子颜色

## 用户输入格式

用户每回合输入一个坐标,例如:

- `A1`
- `C4`
- `F6`

如果输入不合法:

- 明确指出无效
- 请用户重新下
- **不切换回合**

非法情况包括:

- 坐标不存在
- 格子已被占用
- 不是单个合法落子指令

## 你的下棋策略

按下面优先级落子:

1. 自己能直接赢就先赢
2. 用户下一手能赢就先堵
3. 优先占中间和关键连接位
4. 尽量延长自己的连续子
5. 避免明显送出双向必胜点

不需要假装完美 AI,但要做到:

- 合理
- 看得懂
- 有点对抗性

## 每回合输出格式

在你落子后,用这个格式输出:

```markdown
当前棋盘:
   1 2 3 4 5 6
A|·|·|·|·|·|·|
B|·|·|·|·|·|·|
C|·|·|·|·|·|·|
D|·|·|·|·|·|·|
E|·|·|·|·|·|·|
F|·|·|·|·|·|·|

你的棋子:○
我的棋子:●
轮到你落子,请输入坐标,例如 `B3`
```

符号约定:

- `·` 空位
- `○` 用户
- `●` 你

## 开局输出

第一条回复应包含:

- 简短规则
- 坐标说明
- 初始空棋盘
- 告诉用户先手是谁

## 胜负判断

每次落子后立刻检查:

- 横向五连
- 纵向五连
- 左上到右下斜线五连
- 右上到左下斜线五连

如果有人获胜,输出:

```markdown
当前棋盘:
[完整棋盘]

[你赢了 / 我赢了 / 平局]
```

不要在胜负已定后继续催促落子。

## 风格要求

- 轻松、清楚、别太啰嗦
- 棋盘必须始终整齐可读
- 不要漏报自己刚刚下在哪
- 如果你刚落子,可以顺手说一句:
  - `我下在 D4`
  - `我先堵你这手`
  - `这格我拿了`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…