ArkadiumGinrummy / README.md
“646826”
update
a1681bb
---
license: cc-by-4.0
thumbnail: https://huggingface.co/datasets/ArkadiumInc/public-assets/resolve/main/ginrummy/example_hand_01.webp
language:
- en
tags:
- gin-rummy
- rummy
- card-games
- games
- game-logs
- human-gameplay
- reinforcement-learning
- game-ai
- strategy-games
pretty_name: Arkadium Gin Rummy Dataset
size_categories:
- 1K<n<10K
configs:
- config_name: gamelogs_with_images
data_files:
- split: train
path: "data/gamelogs_with_images/train.parquet"
default: true
---
<div align="center">
<table width="100%" cellpadding="0" cellspacing="0"
style="table-layout: fixed; border-collapse: collapse; border: none;">
<tr>
<td width="88" align="left"
style="vertical-align: middle; padding: 0 0px 0 0; border: none;">
<img src="https://cdn-avatars.huggingface.co/v1/production/uploads/69455179a5c08dc77d1777a4/s1IcnLC_jDjyWpKYvnHrB.png" alt="Arkadium" width="72"
style="border-radius: 12px; display: block;">
</td>
<td align="left" style="vertical-align: middle; border: none;">
<h1 style="margin: 0 0 4px; font-size: 28px;">Arkadium Gin Rummy Dataset</h1>
<div style="margin: 0 0 6px;">High-Quality Human Gin Rummy Gameplay (Logs + Screenshots)</div>
<div>
<a href="#-dataset-overview"><img src="https://img.shields.io/badge/Total_Matches-10,000-1a1a2e?style=for-the-badge&labelColor=2d2d44" alt="Matches"></a>
&nbsp;
<a href="#-dataset-overview"><img src="https://img.shields.io/badge/Screenshots-686,403-1a1a2e?style=for-the-badge&labelColor=2d2d44" alt="Screenshots"></a>
&nbsp;
<a href="#-dataset-overview"><img src="https://img.shields.io/badge/Total_Size-23.62_GB-1a1a2e?style=for-the-badge&labelColor=2d2d44" alt="Size"></a>
</div>
</td>
</tr>
</table>
</div>
<!-- Game Screenshots Gallery -->
<div align="center">
<table width="100%" cellpadding="4" cellspacing="0" style="table-layout: fixed; border-collapse: collapse;">
<tr>
<td align="center" width="33%" style="padding: 4px 8px;">
<img src="https://huggingface.co/datasets/ArkadiumInc/public-assets/resolve/main/ginrummy/example_hand_01.webp" alt="Opening Hand" style="width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.3);">
<br><sub><b>Opening Hand</b></sub>
</td>
<td align="center" width="33%" style="padding: 4px 8px;">
<img src="https://huggingface.co/datasets/ArkadiumInc/public-assets/resolve/main/ginrummy/example_hand_02.webp" alt="Mid-Game" style="width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.3);">
<br><sub><b>Mid-Game Decisions</b></sub>
</td>
<td align="center" width="33%" style="padding: 4px 8px;">
<img src="https://huggingface.co/datasets/ArkadiumInc/public-assets/resolve/main/ginrummy/example_hand_03.webp" alt="Knock" style="width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 6px rgba(0,0,0,0.3);">
<br><sub><b>Knock / Endgame</b></sub>
</td>
</tr>
</table>
</div>
## Dataset Overview
This dataset contains **real human gameplay** from Arkadium's gin rummy platform, providing researchers and developers with high-quality training data for game AI, reinforcement learning, and computer vision applications. All hands include screenshots.
**RAW data only.** The primary dataset is a single raw ZIP archive (`.pbn`/`.webp`). Parquet files in `data/` contain only 10 example records for the HuggingFace Dataset Viewer and are not a full export. We do not provide a full Parquet version.
**Totals (selected subset):** 10,000 matches, 686,403 screenshots, ~23.62 GB compressed ZIP size. The dataset is capped at 10,000 unique hands with screenshots and packaged into a single archive.
<table width="100%" cellpadding="6" cellspacing="0" style="table-layout: fixed; border-collapse: collapse;">
<thead>
<tr>
<th style="text-align: left;">Metric</th>
<th align="center"><code>gamelogs_with_images</code></th>
</tr>
</thead>
<tbody>
<tr>
<td>Raw match logs</td>
<td align="center">10,000</td>
</tr>
<tr>
<td>Raw screenshots</td>
<td align="center">686,403</td>
</tr>
<tr>
<td>Raw ZIP size</td>
<td align="center">~23.62 GB</td>
</tr>
<tr>
<td>Raw format</td>
<td align="center">PBN + WebP (ZIP)</td>
</tr>
</tbody>
</table>
## Use Cases
- **Game AI Training**: Train models to predict optimal draws/discards using supervised learning on human gameplay.
- **Reinforcement Learning**: Use as demonstration data for imitation learning or to initialize RL agents.
- **Computer Vision**: Card/board state recognition, meld detection, and UI state extraction from images.
- **Strategy Analysis**: Study human decision-making patterns, draw/knock timing, and deadwood management.
## Data Format
### File Structure
```
Arkadium Gin Rummy Dataset
└── Arkadium_Ginrummy_full_data_gamelogs_and_images_002.zip
├── 0130003.pbn
├── attachments_0130003/
│ ├── 0130003_0001.webp
│ ├── 0130003_0002.webp
│ └── ...
└── ...
```
### Game Log Format (`.pbn`)
Each `.pbn` file contains a complete gin rummy hand record in a human-readable format:
```
[FF "4"]
[DT "2025.08.15"]
[GN "ginrummy"]
[PC "arkadium.com"]
[GameplayId "132069239"]
[Player1 "p1"]
[Player2 "p2"]
[Hand "3:6"]
[GameScore "63:0"]
[Dealer "2"]
[Deal "C2 S3 C5 D6 S6 H7 C8 C9 DQ SQ, HA DA C3 D4 H6 C6 S8 CJ SJ DK"]
[Upcard "HQ"]
[Score "0:25"]
[Play]
1. 1 picks HQx
2. 1 discards H7
3. 2 picks D2
4. 2 discards DK
...
```
<br>
<details>
<summary><b>Header Field Reference</b></summary>
<br>
| Field | Description | Example |
|:------|:------------|:--------|
| `[DT]` | Hand date (YYYY.MM.DD) | `"2025.08.15"` |
| `[GN]` | Game name | `"ginrummy"` |
| `[PC]` | Platform | `"arkadium.com"` |
| `[GameplayId]` | Unique gameplay identifier | `"132069239"` |
| `[Player1]` | First player ID | `"p1"` |
| `[Player2]` | Second player ID | `"p2"` |
| `[Hand]` | Hand index as recorded (format `X:Y`) | `"3:6"` |
| `[GameScore]` | Cumulative score | `"63:0"` |
| `[Dealer]` | Dealer (1 or 2) | `"2"` |
| `[Deal]` | Initial hands (Player1, Player2) | `"C2 S3 ... , HA DA ..."` |
| `[Upcard]` | Initial upcard | `"HQ"` |
| `[Score]` | Hand score result | `"0:25"` |
| `[Deadwood]` | Deadwood totals | `"0:0"` |
Additional metadata tags may appear (e.g., `[FF]`, `[GM]`, `[SZ]`, `[CA]`, `[RU]`) and are preserved in the raw logs.
</details>
<details>
<summary><b>Play Notation Guide</b></summary>
<br>
| Notation | Meaning | Example |
|:---------|:--------|:--------|
| `picks XX` | Draws from the deck | `picks D2` |
| `picks XXx` | Draws from the discard pile | `picks S8x` |
| `discards XX` | Discards a card | `discards H7` |
| `passes` | Declines the upcard | `passes` |
| `knocks` | Knocks to end the hand | `knocks` |
</details>
---
<details>
<summary><b>Parquet Preview (10 records)</b></summary>
<br>
Parquet files in `data/` are **only a 10-record preview** for the HuggingFace Dataset Viewer.
They exist **exclusively for demo/browsing** and **do not represent the full dataset**.
All primary data is in the raw ZIP archives above, and no full Parquet release is provided.
### Quick Start (Preview)
### Installation
```bash
pip install datasets pillow
```
### Load the Preview
```python
from datasets import load_dataset
# Load preview with screenshots (10 records)
ds = load_dataset("ArkadiumInc/ArkadiumGinrummy", "gamelogs_with_images")
```
### Basic Usage
```python
# Access a single hand
hand = ds["train"][0]
print(f"Players: {hand['player1']} vs {hand['player2']}")
print(f"Date: {hand['event_date']}")
print(f"Score: {hand['score']}")
print(f"\nMoves:\n{hand['moves']}")
```
### Working with Screenshots
```python
from PIL import Image
import io
# Get a hand with images
hand = ds["train"][0]
print(f"This hand has {hand['num_images']} screenshots")
# Display the first screenshot
if hand['images']:
img = Image.open(io.BytesIO(hand['images'][0]))
img.show()
```
### Parquet Schema (Preview)
These columns describe the **Parquet preview** (10 records).
<div align="center">
| Column | Type | Description | Config |
|:-------|:-----|:------------|:------:|
| `data_id` | `string` | Unique record identifier | `gamelogs_with_images` |
| `file_id` | `string` | Source file reference | `gamelogs_with_images` |
| `place` | `string` | Platform | `gamelogs_with_images` |
| `num_images` | `int32` | Screenshot count | `gamelogs_with_images` |
| `images` | `list[Image]` | WebP screenshots (stored as bytes/path in Parquet preview) | `gamelogs_with_images` |
| `player1` | `string` | First player ID | `gamelogs_with_images` |
| `player2` | `string` | Second player ID | `gamelogs_with_images` |
| `event_date` | `string` | Hand date (YYYY.MM.DD) | `gamelogs_with_images` |
| `gameplay_id` | `string` | Gameplay identifier | `gamelogs_with_images` |
| `hand` | `string` | Hand score | `gamelogs_with_images` |
| `game_score` | `string` | Cumulative score | `gamelogs_with_images` |
| `dealer` | `string` | Dealer | `gamelogs_with_images` |
| `deal` | `string` | Initial hands | `gamelogs_with_images` |
| `upcard` | `string` | Upcard | `gamelogs_with_images` |
| `score` | `string` | Hand score result | `gamelogs_with_images` |
| `moves` | `string` | Parsed play sequence | `gamelogs_with_images` |
| `groups` | `string` | Meld groupings | `gamelogs_with_images` |
| `layoffs` | `string` | Layoffs by player | `gamelogs_with_images` |
| `deadwood_cards` | `string` | Deadwood cards by player | `gamelogs_with_images` |
| `deadwood` | `string` | Deadwood totals | `gamelogs_with_images` |
| `raw_log` | `string` | Original .pbn content | `gamelogs_with_images` |
</div>
</details>
## Citation
If you use this dataset in your research, please cite:
```bibtex
@dataset{arkadium_ginrummy_2026,
title = {Arkadium Gin Rummy Dataset: Human Gameplay with Screenshots},
author = {Arkadium Inc.},
email = {ai@arkadium.com},
year = {2026},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/ArkadiumInc/ArkadiumGinrummy}
}
```
<div align="center">
<a href="https://creativecommons.org/licenses/by/4.0/">
<img src="https://img.shields.io/badge/License-CC_BY_4.0-lightgrey.svg?style=for-the-badge" alt="CC BY 4.0">
</a>
</div>
<div align="center">
<br />
<sub>
[Report Issues](https://huggingface.co/datasets/ArkadiumInc/ArkadiumGinrummy/discussions) · [Request Features](https://huggingface.co/datasets/ArkadiumInc/ArkadiumGinrummy/discussions)
</div>