xiangqi
收藏资源简介:
该数据集名为“Xiangqi AI Self-Play & MCTS Zero-Copy Dataset”(中国象棋AI自我对弈与MCTS零拷贝数据集),由hoduyquocbao发布,用于存储通过蒙特卡洛树搜索(MCTS)自我对弈引擎生成的中国象棋(Xiangqi/Co Tuong)知识。数据集包含两个子集:games和positions。games子集收录了121局完整对局,每条记录包括对局ID、赛事名称、开局名称、红方/黑方棋手、结果、总步数、开局FEN串、PGN格式棋谱和时间戳。positions子集包含63个经过评估的棋盘局面(FEN格式),每个局面记录了FEN键、完整FEN、出现次数、红方胜/黑方胜/和棋次数、最佳推荐走法、推荐走法列表(JSON格式)、失误走法列表(JSON格式)以及时间戳。该数据集适用于强化学习、棋类AI训练、局面评估、走法推荐等任务。引擎采用零拷贝共享内存技术实现100倍加速。数据文件以JSONL格式存储,支持通过Hugging Face Datasets库加载。
The dataset is named Xiangqi AI Self-Play & MCTS Zero-Copy Dataset, published by hoduyquocbao, for storing knowledge of Chinese Chess (Xiangqi/Co Tuong) generated by a Monte Carlo Tree Search (MCTS) self-play engine. It contains two subsets: games and positions. The games subset includes 121 complete games, each with fields such as game ID, event name, opening name, red/black player, result, total moves, opening FEN, PGN notation, and timestamp. The positions subset includes 63 evaluated board positions (in FEN format), each with FEN key, full FEN, occurrence count, red win/black win/draw counts, best recommended move, recommended move list (JSON), blunder move list (JSON), and timestamp. The dataset is suitable for reinforcement learning, chess AI training, position evaluation, move recommendation, etc. The engine uses zero-copy shared memory technology for 100x speedup. Data is stored in JSONL format and can be loaded via the Hugging Face Datasets library.
数据集概述:Xiangqi AI Self-Play & MCTS Zero-Copy Dataset
基本信息
- 数据集名称:Xiangqi AI Self-Play & MCTS Zero-Copy Dataset(
hoduyquocbao/xiangqi) - 许可证:Apache 2.0
- 任务类别:强化学习、棋盘游戏
- 语言:越南语、英语
- 数据规模:1K < n < 10K 条记录
核心内容
- 游戏总数:127 局(
data/games/train.jsonl) - 学习位置数:77 个(
data/positions/train.jsonl) - 引擎特性:Express Zero-Copy 共享内存实现(100 倍加速)
- 最后同步时间:2026-08-03T17:14:10.756Z
数据集配置
该数据集包含三个配置(config):
| 配置名 | 数据文件 | 用途 |
|---|---|---|
| default | data/games/train.jsonl |
默认配置,包含棋局数据 |
| games | data/games/train.jsonl |
棋局子集,用于强化学习 |
| positions | data/positions/train.jsonl |
位置评估子集,含胜率统计与推荐走法 |
特征字段
games/default 配置(棋局数据):
game_id(string):对局唯一标识event(string):赛事/事件名称opening_name(string):开局名称red(string):红方选手black(string):黑方选手result(string):对局结果total_moves(int64):总步数opening_fen(string):开局 FEN 格式pgn(string):完整棋谱(PGN 格式)timestamp(string):时间戳
positions 配置(位置评估数据):
fen_key(string):FEN 键fen_full(string):完整 FEN 表示times_seen(int64):出现次数red_wins(int64):红方胜场数black_wins(int64):黑方胜场数draws(int64):平局数best_recommended_move(string):最优推荐走法recommended_moves_json(string):推荐走法集合(JSON)blunder_moves_json(string):失误走法集合(JSON)timestamp(string):时间戳
文件结构
data/games/train.jsonl:完整 JSONL 棋局记录(用于强化学习)data/positions/train.jsonl:FEN 位置评估记录,包含胜负统计与推荐走法data/games.pgn:完整 WXF/PGN 主棋谱data/knowledge.json:评估位置的 JSON 格式data/knowledge.parquet.json:Parquet 模式表示(用于高速大数据分析)data/dataset_schema.json:正式数据集元数据和模式声明
使用方式
可通过 Hugging Face datasets 库加载该数据集:
python from datasets import load_dataset
加载棋局子集
games_dataset = load_dataset("hoduyquocbao/xiangqi", "games")
加载位置评估子集
positions_dataset = load_dataset("hoduyquocbao/xiangqi", "positions")




