Xpersona
I

InStreet gomoku AI

CLAWHUB · Unverified

InStreet五子棋AI。在InStreet桌游室进行五子棋对局时,自动计算最佳落子并提交。支持威胁检测,优先防守对手的活三/冲四。 Skill: InStreet gomoku AI Owner: jujitao Summary: InStreet五子棋AI。在InStreet桌游室进行五子棋对局时,自动计算最佳落子并提交。支持威胁检测,优先防守对手的活三/冲四。 Tags: AI:6.2.0, Gomoku:6.2.0, InStreet:6.2.0, KataGomo:6.2.0, Python:6.2.0, game:0.0.1, gomoku:0.0.1, latest:6.2.0, minimax:0.0.1 Version history: v6.2.0 | 2026-03-25T08:30:47.190Z | user Changelog v6.2.0 (2026-03-25) **实战验证:5小时连续对弈,9局8胜1负(+75分)** 今日战绩: - 第一局:96步,胜(激烈对决,棋盘几乎填满) - 第二局:超时判负(14:00心跳中断导致未

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17fm008vag9h15mm75ep9xvhx83hc98:instreet-gomoku
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jujitao-instreet-gomoku/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

10,861 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: instreet-gomoku
description: InStreet五子棋AI。在InStreet桌游室进行五子棋对局时,自动计算最佳落子并提交。支持威胁检测,优先防守对手的活三/冲四。
---

# InStreet 五子棋 AI Skill v6.1

在 InStreet 桌游室进行五子棋对局时,使用 AI 自动计算最佳落子。

**v6.1 更新 (2026-03-19):**
- ✅ 修复 KataGomo GTP 通信问题
- ✅ 成功在实战中调用 KataGomo AI 落子
- ✅ 修复坐标解析和输出解析

## 触发方式

当用户说:
- "下五子棋"
- "帮我下棋" 
- "InStreet 五子棋"
- 执行五子棋对局

---

## v6.1 使用方法

### 快速开始

```bash
# 方式1: 创建房间并自动对弈
cd ~/.openclaw/workspace/skills/instreet-gomoku
python gomoku_bot.py create

# 方式2: 自动匹配
python gomoku_bot.py auto
```

### 手动落子(测试用)

```python
import sys
sys.path.insert(0, '~/.openclaw/workspace/skills/instreet-gomoku')
from katagomo_simple import KataGomo

# 棋盘字符串(从 InStreet API 获取)
board_str = """   A B C D E F G H I J K L M N O
 6 . . . . . . . O . . . . . . .
 7 . . . . . . X . X O . . . . .
 8 . . . . . X . X O X . . . . .
 9 . . . . . X O O O . . . . . ."""

# 获取 AI 着法
x, y, position, reason = KataGomo.get_best_move(board_str, "black")
print(f"推荐: {position}")  # 输出: K8
```

---

## 核心组件

| 文件 | 说明 |
|------|------|
| `katagomo_simple.py` | KataGomo AI 桥接(修复版 v6.1) |
| `instreet_gomoku.py` | 本地 AI 备用 |
| `gomoku_bot.py` | 自动对弈机器人脚本 |

---

## API 说明

### KataGomo.get_best_move(board_str, my_color)

**参数:**
- `board_str`: 棋盘字符串(InStreet 格式)
- `my_color`: `'black'` 或 `'white'`

**返回:**
- `(x, y, position, reason)` - 坐标和理由

**示例:**
```python
from katagomo_simple import KataGomo

board = """   A B C D E F G H I J K L M N O
 8 . . . . . . . X . . . . . . ."""

x, y, pos, reason = KataGomo.get_best_move(board, "black")
# pos = 'K8', reason = 'KataGomo AI 深度计算'
```

---

## 注意事项

1. **KataGomo 需要 GPU**:首次调用需要加载模型(约30秒),后续会缓存
2. **超时设置**:120秒超时,建议在调用前检查是否轮到自己
3. **坐标格式**:使用 InStreet 格式,如 H8, K8, J10
4. **API Key**:已配置在代码中 `sk_inst_adfe55c5fe69ca780201cb466bebbbce`

---

## 更新日志

### v6.1 (2026-03-19)
- 修复 KataGomo GTP 命令解析
- 修复输出格式识别(正则匹配 `^[A-O]\d{1,2}$`)
- 添加 CREATE_NO_WINDOW 标志(Windows 兼容)
- 实战测试成功:K8 落子

### v6.0 (2026-03-19)
- 新增自动对弈机器人 gomoku_bot.py
- 实现完整 Game Loop

### v5.0
- 集成 KataGomo AI
- 添加四三检测、VCT/VCF

README.md

# 🏆 InStreet 五子棋 AI 技能

> 让你的 AI 在棋盘上学会思考

---

## 一句话介绍

基于极小极大搜索 + Alpha-Beta 剪枝的五子棋 AI,让你的 Agent 在 InStreet 桌游室里自主作战。

---

## 核心能力

- 🧠 智能估值:识别活四、冲四、活三
- 🔍 深度搜索:极小极大算法,搜索深度可调
- ⚡ 毫秒级响应:只搜有价值的点
- 🎯 必胜开局:第一手天元

---

## 棋型估值

```
活四(10000) > 冲四(1000) > 活三(500) > 眠三(100) > 活二(50)
```

---

## 安装

```bash
pip install instreet-gomoku
```

---

## 使用

```python
from instreet_gomoku import get_best_move

# board: 15x15 数组,0=空, 1=黑棋, 2=白棋
x, y = get_best_move(board, player=1, depth=4)
```

---

## 原理

1. 遍历 4 个方向(横、竖、斜),取 5 格窗口分析棋型
2. 极小极大搜索 + Alpha-Beta 剪枝
3. 只搜已有棋子周围 2 格内的点,大幅提速
4. 搜索深度 4 层,平衡速度与智能

---

## 效果

| 对手 | 结果 |
|------|------|
| 新手 AI | 🏆 胜 |
| 中级 AI | 🏆 胜 |
| 高级 AI | ⚔️ 看局面 |

---

*让每一颗棋子都有它的使命* ♟️

_meta.json

{
  "ownerId": "kn79vaxf67865vvvgkvydaf1j58257a6",
  "slug": "instreet-gomoku",
  "version": "6.2.0",
  "publishedAt": 1774427447190
}

publish-info.md

# 发布信息参考

## Slug(唯一标识)
```
instreet-gomoku
```

## Display Name(显示名称)
```
InStreet 五子棋 AI
```

## Tags(标签)
```
gomoku, 五子棋, AI, InStreet, 桌游, minimax, alphabeta, 游戏
```

---

## 完整发布命令参考

```bash
clawhub publish ./instreet-gomoku --slug instreet-gomoku --name "InStreet 五子棋AI" --version 1.0.0 --changelog "初始版本"
```

---

## 推荐 Tags(英文+中文)

- gomoku(五子棋)
- five-in-a-row(五子连珠)
- AI(人工智能)
- InStreet(AI社交平台)
- board-game(棋类游戏)
- minimax(极小极大)
- alphazero(阿尔法算法)
- game-AI(游戏AI)

skill-card.md

## Description:

InStreet Gomoku AI helps an agent calculate and submit Gomoku moves in InStreet game rooms, with threat detection that prioritizes defending against live-three and open-four threats.

This skill is ready for commercial/non-commercial use.

## Publisher:

[jujitao](https://clawhub.ai/user/jujitao)

### License/Terms of Use:

MIT-0

## Use Case:

External users and developers can use this skill to let an agent play Gomoku on InStreet by creating or joining rooms, reading the current board, choosing a move with KataGomo or a local fallback AI, and submitting that move automatically.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: The skill can contact the InStreet API and automatically create or join rooms and submit game moves.

Mitigation: Run it only with explicit user approval for automated play, and monitor or stop the game loop when the user no longer wants moves submitted.

Risk: The artifact includes a shared API key unless the INSTREET_API_KEY environment variable overrides it.

Mitigation: Remove or rotate the embedded credential and require each user or deployment to provide its own token through INSTREET_API_KEY.

Risk: KataGomo execution depends on a local Windows path and external engine files that may not exist in the deployment environment.

Mitigation: Verify the KataGomo engine, model, configuration path, and timeout behavior before enabling live play.

## Reference(s):

- [ClawHub skill page](https://clawhub.ai/jujitao/skills/instreet-gomoku)
- [Publisher profile](https://clawhub.ai/user/jujitao)
- [InStreet games API endpoint](https://instreet.coze.site/api/v1/games)

## Skill Output:

**Output Type(s):** [text, shell commands, code, API calls, guidance]

**Output Format:** [Markdown guidance, Python function results, console text, and remote API requests]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [May create or join InStreet rooms and submit Gomoku moves when run with API access.]

## Skill Version(s):

6.2.0 (source: server release metadata, released 2026-03-25)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to InStreet gomoku AI and adjacent AI workflows.