Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Hand Replayer

Interactive poker hand history replayer — paste GG / PokerStars hand history, watch the hand play out on a visual table. Zero dependencies · Single self-contained HTML · Open directly in browser · MIT-licensed.

Version License: MIT Zero Dependencies


What is this? / 这是什么?

Hand Replayer turns boring plain-text hand histories into a visual, animated poker table. Paste your GG / PokerStars hand history, and watch each street play out — who raised, who folded, who won, and how the pot grew.

Hand Replayer 把枯燥的纯文本手牌历史变成一目了然的动态牌桌画面。粘贴 GG / PokerStars 的手牌历史,就能看到每条街的行动——谁加注、谁弃牌、谁赢下底池。

Why / 为什么做这个

  • Analyze faster — visual playback beats reading text line by line
  • Share hands — export a self-contained HTML you can send to anyone
  • Agent-ready — AI agents can generate replay HTML for you automatically

Core features / 核心功能

Feature Description
Paste & Play Paste hand history text → instant animated replay / 粘贴手牌文本 → 即时动态回放
GG & PokerStars Both formats supported, with real sample hands included / 两种格式都支持,内置真实风格样例
Self-contained Single HTML file, zero dependencies, works offline / 单文件、零依赖、离线可用
Export / Share Export a fully self-contained HTML for sharing / 导出完全自包含的 HTML 用于分享
Example hands HU / 6-max / full-ring / GG / PS samples built in / 内置单挑/6人/9人/GG/PS 样例

Quick Start / 快速开始

Option A: Just open it / 直接打开

  1. Download index.html
  2. Double-click to open in your browser
  3. Paste a hand history or click a sample button

Option B: Serve locally / 本地起服务

# Python 3
python3 -m http.server 8000
# open http://localhost:8000

Option C: Run from anywhere / 在线使用

Host the folder on any static file server (GitHub Pages, Netlify, etc.) — no backend needed.

Usage / 使用方法

  1. Copy a hand history from GG Poker or PokerStars (Hand History window → copy all)
  2. Paste into the text area
  3. Click Parse / 解析
  4. Watch the hand replay; use playback controls to step through

Sample hands / 示例牌局

The repo ships with five examples in examples/:

File Format Players
example_hu.json pre-parsed JSON 2
example_6max.json pre-parsed JSON 6
example_fullring.json pre-parsed JSON 9
example_gg.txt GG raw text 6
example_ps.txt PokerStars raw text 6

Project Structure / 项目结构

HandReplayer/
├── index.html            ← self-contained app (HTML+CSS+JS, parser embedded)
├── parser.js             ← development-only parser (merged into index.html on build)
├── SPEC.md               ← full product spec (V2.1)
├── examples/             ← sample hands (fictional data)
└── LICENSE               ← MIT

Development / 开发

The release artifact is the single self-contained index.html — the parser is embedded in a <script> block. parser.js is the same code split out for development convenience; merge it into index.html before release (the shipped file is already merged).

开发态 parser.js 与发布态内嵌解析器是同一份代码。发布形态 = 单文件 index.html,解析器内嵌、零外部依赖。

License / 许可

MIT — see LICENSE.


Fictional sample data only. No real hand histories are included. 示例数据均为虚构。不包含任何真实牌局记录。

About

Interactive poker hand history replayer — paste GG/PokerStars hands, watch the hand play out. Zero deps, single self-contained HTML.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages