Skip to content

DannyAce66/Hand_Replayer

Repository files navigation

♠ Hand Replayer V1.1 · 扑克牌谱回放器

Paste GG / PokerStars Hold'em or PLO hand histories and replay them step by step in your browser. 粘贴 GG / PokerStars 的 Hold'em 或 PLO 牌谱,在浏览器中逐步回放。

screenshot

特性 Features

  • Obsidian & Brass table / 曜石黑金牌桌 — Black felt, lacquered rail, and champagne-gold details / 黑呢绒、钢琴漆桌沿与香槟金细节
  • Stable 1280×800 stage / 稳定舞台 — Scales on desktop and pans at a readable minimum size on narrow screens / 桌面等比缩放,窄屏保持可读尺寸并支持滚动
  • Multiple table sizes / 多种桌型 — Heads-up through 9-max, including sparse tables / 支持单挑至九人桌及空座桌
  • Correct positions / 正确位置 — BTN, SB, BB, UTG, MP, CO, LJ, and HJ follow occupied seats clockwise / 位置按实际在座玩家顺时针计算
  • Complete playback / 完整回放 — Step, auto-play, street jump, and street progress / 支持步进、自动播放、跳街和分街进度
  • Spoiler-free log / 无剧透日志 — Future actions are hidden unless explicitly revealed / 默认隐藏未来行动,可主动显示
  • Hand results / 手牌结果 — Hero net result is shown for every parsed hand / 每手显示 Hero 净盈亏
  • Money ledger / 资金流水 — Antes, straddles, refunds, and multiple side-pot payouts / 支持前注、straddle、返还和多次边池派奖
  • Bilingual UI / 双语界面 — Switch the complete product between English and Chinese from the top-right button / 使用右上角按钮切换完整中英文界面
  • Two game modes / 两种游戏模式 — Hold'em (2 cards) and PLO (4 cards) / 支持 Hold'em(2张)和 PLO(4张)
  • Rule-aware analysis / 规则化分析 — Hold'em evaluates the best five of seven; PLO always uses exactly two hole cards and three board cards / Hold'em 从七张选最佳五张,PLO 严格使用两张底牌加三张公牌
  • Pot-limit validation / 底池限注校验 — PLO histories flag bets above the legal pot-size maximum without changing the source replay / PLO 牌谱会标记超过合法底池上限的下注,但不篡改原始回放
  • PWA — Installable and available offline / 可安装到桌面并离线使用

使用 Usage

Select Hold'em or PLO above the input box before parsing. Use the language button in the top-right corner to switch the full interface.

解析前在输入框上方选择 Hold'em 或 PLO。使用右上角语言按钮切换完整界面。

在线版(推荐)

打开 GitHub Pages 地址即可使用;浏览器菜单选"安装到桌面"可变成独立窗口应用。

本地版

零依赖、单文件:双击 index.html 即可(所有解析与渲染都在浏览器本地完成,数据不出本机)。

加载示例牌谱需要本地服务器(file:// 下浏览器禁止 fetch):

python -m http.server 8080
# 打开 http://localhost:8080/index.html

Without a local server, paste hand history text directly — everything works except the "示例" (sample) button.

操作 Controls

按键 功能
/ 上一步 / 下一步
Space 播放 / 暂停
P F T R S 跳翻前 / 翻牌 / 转牌 / 河牌 / 摊牌
点击进度条分段 跳转到对应街
Key Action
/ Previous / next action
Space Play / pause
P F T R S Jump to preflop / flop / turn / river / showdown
Click progress segments Jump to that street

支持的牌谱格式 Formats

  • GG Poker (HisHands)Poker Hand #HD...
  • PokerStarsPokerStars Hand #...
  • Games / 游戏 — Hold'em and PLO

可一次粘贴多手牌,自动分割。Multiple hands in one paste are split automatically.

技术 Tech

  • 单文件应用:全部逻辑在 index.html(HTML + CSS + JS),零 npm 依赖、零 CDN
  • 纯 DOM/CSS 渲染:呢绒颗粒、层叠筹码、胶囊座位牌均为 CSS 渐变与阴影
  • 牌谱解析:正则,纯前端(GG / PokerStars 两种格式兼容)
  • PWAmanifest.webmanifest + sw.js(可选脚手架,应用本体仍是单文件)

文件 Files

index.html            ← 应用本体(单文件)
sample_hand.txt       ← 示例牌谱
manifest.webmanifest  ← PWA 清单
icon.svg              ← 图标
sw.js                 ← PWA 离线缓存
LICENSE               ← MIT 开源许可证
docs/                 ← 设计文档与截图

Version / 版本

Current release: V1.1 当前版本:V1.1

License / 许可证

MIT

About

Texas Holdem hand history replayer. GG/PokerStars parser. Single-file HTML, zero dependencies. Obsidian & Brass table UI. PWA installable.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages