← 返回
未分类

ChessGuardian

Play chess via ChessGuardian API — start games, make moves, watch live games, run autoplay bots (Stockfish or Minimax), and get board snapshots. Use when the...
通过 ChessGuardian API 下棋 — 开始对局、走棋、观看实时对局、运行自动对弈机器人(Stockfish 或 Minimax)并获取棋盘快照。在需要时使用。
kenken64
未分类 clawhub v1.0.0 1 版本 99346.4 Key: 无需
★ 0
Stars
📥 152
下载
💾 0
安装
1
版本
#ai#bot#chess#game#latest#minimax#stockfish

概述

ChessGuardian Skill

Interact with ChessGuardian — a live chess platform with Stockfish AI.

Configuration

Set the base URL in the environment or default to:

CHESSGUARDIAN_URL=https://chessguardian-production.up.railway.app

API Endpoints

Start a new game

POST /api/live/start
Body: {"mode": "ai"} or {"mode": "pvp"}
Returns: {id, fen, history, lastMove}

Get game state

GET /api/live/<game_id>
Returns: {id, fen, history, status, turn, winChance, gameOver}

Make a move

POST /api/live/<game_id>/move
Body: {"move": "e5"} (SAN or UCI format)
Returns: {fen, history, stockfishMove, analysis, gameOver, status}

Get QR code

GET /api/live/<game_id>/qr
Returns: PNG image

Workflows

Start a game and send QR code

  1. POST /api/live/start with {"mode": "ai"}
  2. GET /api/live//qr → save to outbound media
  3. Send QR image + live link to user

Make a move for the user

  1. POST /api/live//move with the move in SAN (e.g. "e5", "Nf6", "O-O")
  2. Show the AI analysis and Stockfish's reply
  3. Optionally render the board snapshot

Run autoplay bot

Execute the bundled scripts:

  • Stockfish bot: python3 -u scripts/autoplay_stockfish.py --depth 20 --delay 5
  • Minimax bot: python3 -u scripts/autoplay_minimax.py --depth 4 --delay 5

Both scripts support new to auto-start a game. Use -u for unbuffered output.

Render board snapshot

  1. Generate an HTML file using chessboard.js with the FEN from game state
  2. Screenshot with Playwright: npx playwright screenshot --browser chromium --viewport-size=440,520 board.html output.png
  3. Send the image to user

Dependencies

  • Python 3 with chess and requests packages
  • Stockfish binary (for autoplay_stockfish.py)
  • Playwright + Chromium (for board screenshots)
  • curl or equivalent for API calls

Live page

Users can watch games in browser at: /live/

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-12 06:18 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

security-compliance

Skill Vetter

spclaudehome
AI智能体技能安全预审工具。安装ClawdHub、GitHub等来源技能前,检查风险信号、权限范围及可疑模式。
★ 1,219 📥 266,861
ai-intelligence

self-improving agent

pskoett
捕获经验教训、错误和纠正,以实现持续改进。使用时机:(1)命令或操作意外失败;(2)用户纠正……
★ 4,062 📥 799,972
ai-intelligence

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,363 📥 319,048