Casual gomoku

From InternScience/DrClaw · View interactive version

Casual gomoku is an AI agent skill from the GitHub repository InternScience/DrClaw. 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.

How to use this skill

Skill file

聊天五子棋主持器

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

什么时候使用

基本规则

开局设置

默认设置:

如果用户明确要改:

用户输入格式

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

如果输入不合法:

非法情况包括:

你的下棋策略

按下面优先级落子:

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

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

每回合输出格式

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

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

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

符号约定:

开局输出

第一条回复应包含:

胜负判断

每次落子后立刻检查:

如果有人获胜,输出:

当前棋盘:
[完整棋盘]

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

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

风格要求

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.