puzzlescript-gists
收藏资源简介:
PuzzleScript人类创作游戏(完整Gist语料库)是一个包含34,712个由人类创作的PuzzleScript游戏源代码的数据集,这些代码从公共GitHub gist中收集。数据集旨在支持网格谜题动态的世界模型、代码生成、程序合成和游戏设计等研究任务。每个游戏都包含完整的PuzzleScript源代码,定义了游戏规则(机制)和一个或多个关卡(初始状态)。数据集以JSONL格式提供,包含以下字段:id(原始GitHub gist标识符)、content(完整的PuzzleScript源代码)、source_collections(来源档案名称,如PuzzleScript Gallery、Pedros PuzzleScript Archive、itch.io或GitHub gist)、parse_status(解析状态,如ok、parse_error等)、n_objects和n_levels(解析后的对象和关卡计数)、mechanics_hash和levels_hash(基于机制和关卡的规范哈希值,用于去重)、dedup_group(去重聚类键)、is_dedup_representative(是否为聚类的代表样本)和n_in_dedup_group(聚类大小)。数据集经过去重处理,基于机制和关卡的哈希值进行聚类,确保仅当两者完全匹配时才视为重复,从而保留真实的变体。去重后包含25,103个独特游戏。数据来源于多个公共档案,包括PuzzleScript Gallery、Pedros PuzzleScript Archive和itch.io,以及原始GitHub gist抓取。数据集遵循“other”许可,每个游戏属于其原始作者,仅用于研究目的。
Human-Created PuzzleScript Games (Complete Gist Corpus) is a dataset containing 34,712 human-authored PuzzleScript game source codes collected from public GitHub Gists. This dataset is designed to support research tasks such as dynamic world models for grid puzzles, code generation, program synthesis, and game design. Each entry contains complete PuzzleScript source code that defines the game rules (mechanics) and one or more levels (initial states). The dataset is provided in JSONL format, with the following fields: "id" (original GitHub Gist identifier), "content" (full PuzzleScript source code), "source_collections" (name of the source archive, e.g., PuzzleScript Gallery, Pedros PuzzleScript Archive, itch.io, or GitHub Gists), "parse_status" (parsing status, e.g., "ok", "parse_error", etc.), "n_objects" and "n_levels" (counts of parsed objects and levels), "mechanics_hash" and "levels_hash" (canonical hashes based on game mechanics and levels for deduplication), "dedup_group" (deduplication clustering key), "is_dedup_representative" (whether the entry is the representative sample of its cluster), and "n_in_dedup_group" (size of the deduplication cluster). The dataset has undergone deduplication processing: clustering is performed based on the mechanics and levels hashes, with duplicates only considered when both values match exactly to preserve genuine variants. After deduplication, the dataset contains 25,103 unique games. The data is sourced from multiple public archives including PuzzleScript Gallery, Pedros PuzzleScript Archive, itch.io, and raw GitHub Gist crawls. The dataset is licensed under "other" terms; each game belongs to its original author, and the dataset is intended for research purposes only.
数据集概述
数据集名称:PuzzleScript Human-Authored Games (Full Gist Corpus)
规模:34,712个由人类创作的PuzzleScript游戏,来自公共GitHub gists。
语言:主要使用英语。
数据集内容
- 包含每个游戏的完整PuzzleScript源代码。
- 每个游戏定义了重写规则(机制)和一个或多个关卡(初始状态)。
- 数据集中保留了每个不同的gist,每条数据都标注了去重簇标识,便于一步过滤出唯一游戏集(去重后为25,103个不同游戏)。
数据字段
| 字段 | 描述 |
|---|---|
id |
原始GitHub gist ID |
content |
完整的PuzzleScript源代码 |
source_collections |
游戏来源的档案名称(如PuzzleScript Gallery、Pedros PuzzleScript Archive、itch.io)或GitHub gist |
parse_status |
解析状态:ok、parse_error、preprocess_error、timeout |
n_objects |
游戏中的对象数量(仅限解析成功的游戏) |
n_levels |
关卡数量(仅限解析成功的游戏) |
mechanics_hash |
机制的唯一指纹(忽略名称和美术资源) |
levels_hash |
关卡的唯一指纹(忽略名称和美术资源) |
dedup_group |
去重簇的键 |
is_dedup_representative |
是否为该簇的代表游戏(每个簇一个) |
n_in_dedup_group |
该簇中的游戏数量 |
去重逻辑
- 仅当机制指纹和关卡指纹均与已保留游戏匹配时,才视为重复;因此真正的小变体版本会被保留。
- 去重过程可重现,使用附带的
dedup_master.json和dedup_master.py文件。
数据来源与许可
- 游戏来源包括:
- PuzzleScript Gallery
- Pedros PuzzleScript Archive
- itch.io
- 直接来自GitHub gists的爬取
- 不包含GitHub用户名,仅保留gist ID作为标识符。
- 本数据集中的游戏为第三方人类创作作品,仅供研究目的重新分发;每个游戏版权归原作者所有。
- 数据集许可证为
other。
适用任务
- 文本生成
- 世界模型(网格谜题动力学)
- 代码生成
- 程序综合
- 游戏设计




