npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

koishi-plugin-cchess

v1.0.1

Published

欢迎来到中国象棋游戏,支持人人/人机对战、纵线/坐标操作方式、编辑棋盘、导入/导出FEN等功能,提供 40+ 棋盘/棋子皮肤及排行榜系统。🎪

Downloads

277

Readme

koishi-plugin-cchess

npm

🎐 简介

欢迎来到中国象棋游戏,支持人人/人机对战、纵线/坐标操作方式、编辑棋盘、导入/导出FEN等功能,提供 40+ 棋盘/棋子皮肤及排行榜系统。🎪

🎉 安装

您可通过 Koishi 插件市场搜索并安装该插件。

🌈 使用

  • 建议自行添加别名,如 cc 等更方便的指令。
  • 请安装并启用所需服务,canvas 服务可使用 puppeteer 提供。
  • 支持使用中国象棋纵线(炮二平五/炮8平5)和字母坐标(a0a1)进行移动。了解详情 - 中国象棋着法表示

⚙️ 配置项

  • imageType: 发送图片类型,可选 png/jpeg/webp
  • retractDelay: 自动撤回等待时间(秒),设为0则不自动撤回。
  • pieceSkin: 棋子皮肤,可选值有:红黑棋子、隶书棋子等数十种不同风格。
  • isTextToImageConversionEnabled: 是否开启文字转图片功能(可选)。
  • boardSkin: 棋盘皮肤,可选值有:木制棋盘、玉石太极棋盘等数十种精美皮肤。
  • defaultEngineThinkingDepth: 默认 AI 思考深度,数值越大棋力越强,但耗费资源也更多。
  • isChessImageWithOutlineEnabled:是否为象棋图片添加辅助外框,关闭后可以显著提升图片速度,但无辅助外框,玩起来可能会比较累。
  • allowFreePieceMovementInHumanMachineMode: 是否允许在人机模式下自由移动棋子,开启后可以不需要加入游戏直接开始玩人机模式。

🌼 指令

  • cchess.退出: 退出当前游戏。
  • cchess.结束: 强制结束本局游戏。
  • cchess.认输: 认输结束本局游戏。
  • cchess.排行榜.总胜/输场: 请求悔棋操作。
  • cchess.开始.人人对战: 开始人人对战模式。
  • cchess.开始.人机对战: 开始人机对战模式。
  • cchess.悔棋.请求/同意/拒绝: 请求悔棋操作。
  • cchess.加入 [红/黑]: 加入游戏,可选红/黑方。
  • cchess.移动 [纵线/字母坐标]: 通过指令移动棋子。
  • cchess.查看云库残局.DTM统计/DTC统计: 查看云库残局统计。
  • cchess.查询玩家记录 [@某人 或 不填则查自己]: 查询玩家记录。
  • cchess.编辑棋盘.导入/导出/使用方法: 导入/导出棋盘状态与fen使用方法。

🍧 致谢

🐱 QQ 群

  • 956758505

✨ License

MIT License © 2024

希望您喜欢这款插件! 💫

如有任何问题或建议,欢迎联系我哈~ 🎈