{"id":50857756,"url":"https://github.com/prof-faustus/bsv-poker-zh","last_synced_at":"2026-06-14T19:31:11.502Z","repository":{"id":362231195,"uuid":"1257278635","full_name":"prof-faustus/bsv-poker-zh","owner":"prof-faustus","description":"bsv-poker（BSV 无荷官扑克）简体中文翻译版【进行中】：全部文档 100% 简体中文，代码注释约 70/185 已译（其余待额度重置后补全）；代码不变，测试全绿。Simplified-Chinese fork of bsv-poker — all docs translated, code comments in progress; code unchanged, tests green.","archived":false,"fork":false,"pushed_at":"2026-06-03T07:03:30.000Z","size":883,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-03T09:06:50.148Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prof-faustus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-06-02T14:26:46.000Z","updated_at":"2026-06-03T07:03:34.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/prof-faustus/bsv-poker-zh","commit_stats":null,"previous_names":["prof-faustus/bsv-poker-zh"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/prof-faustus/bsv-poker-zh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Fbsv-poker-zh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Fbsv-poker-zh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Fbsv-poker-zh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Fbsv-poker-zh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prof-faustus","download_url":"https://codeload.github.com/prof-faustus/bsv-poker-zh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prof-faustus%2Fbsv-poker-zh/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34335688,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-06-14T19:31:10.608Z","updated_at":"2026-06-14T19:31:11.497Z","avatar_url":"https://github.com/prof-faustus.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bsv-poker\n\n[![CI](https://github.com/prof-faustus/bsv-poker/actions/workflows/ci.yml/badge.svg)](https://github.com/prof-faustus/bsv-poker/actions/workflows/ci.yml)\n\n一个构建于 **Bitcoin SV** 之上（Genesis 升级后，默认 regtest）的无荷官、非托管多人 **poker** 平台。依据 [`/spec`](./spec) 中的规范构建：\n\n- `spec/bsv-poker-spec.md` — 协议 / 密码学 / 交易核心（权威规范）。\n- `spec/bsv-poker-app-architecture.md` — 应用层（桌面端 + Web，多种游戏）。\n- `spec/bsv-poker-spec-redteam-01.md` — 红队评审 01（已应用）。\n- `spec/BUILD-KICKOFF.md` — 本仓库所执行的构建指令。\n\n## 不可妥协的规则（强制执行，而非空想）\n\n1. **仅限 BSV，Genesis 升级后。** 不支持 BTC。`OP_CHECKLOCKTIMEVERIFY`/`OP_CHECKSEQUENCEVERIFY`\n   均为空操作；所有计时均在**交易级别**进行（`nLockTime` + `nSequence`）。\n2. **`OP_RETURN` 在任何地方都被禁用。** 每一个承诺都是活动脚本中的 pushdata\n   （`\u003cdata\u003e OP_DROP`）。如果操作码 `0x6a` 出现在任何锁定/解锁脚本中，`pnpm lint:opreturn` 会使构建失败。（core P11 / §6.5；HANDOVER §3。）\n3. **零捏造。** 每一个向量/字节大小都由运行代码生成；`pnpm reproduce`\n   会重新生成所有这些数据，并在任何不匹配时以非零状态退出。\n4. **真实解释器测试。** 脚本花费通过启用 Genesis 规则的真实 BSV Script 解释器运行；\n   负面测试在解释器*内部*失败。\n5. **可追溯性是完整的。** 每一个 `REQ-*` 都映射到代码和一个通过的测试\n   （`pnpm trace`）。\n6. **工程标准：** NASA NPR 7150.2 保障 + 有文档记录的 Power-of-Ten 改编 +\n   Microsoft SDL。\n\n## 下载与运行\n\n### Windows 桌面端（下载安装程序）\n从 **[Releases](https://github.com/prof-faustus/bsv-poker/releases/latest)** 获取最新安装程序：\n- **`bsv-poker_0.1.0_x64-setup.exe`**（NSIS）— 双击、安装，从开始菜单启动 **bsv-poker**。\n  （`…_x64_en-US.msi` 是 MSI 替代方案。）\n- 需要 Microsoft **WebView2** 运行时（Windows 11 上已自带）。应用打开时会显示一个\n  **REGTEST — play money** 横幅，并与机器人进行一对一无限注德州扑克对局。目前未签名，因此\n  SmartScreen 可能会提示\"未知发布者\" → **更多信息 → 仍要运行**。\n\n### Web（容器）\nWeb 客户端由 [`publish-web.yml`](.github/workflows/publish-web.yml) 发布到 GHCR：\n```\ndocker run --rm -p 8080:80 ghcr.io/prof-faustus/bsv-poker-web:latest\n# 打开 http://localhost:8080\n```\n\u003e 仅首次需要：GHCR 默认将新软件包设为**私有**。要允许匿名 `docker pull`，\n\u003e 请打开 **github.com/users/prof-faustus/packages/container/bsv-poker-web/settings → Change visibility\n\u003e → Public**（一键完成）。或者自行构建/运行：\n\u003e ```\n\u003e docker build -f apps/client-web/Dockerfile -t bsv-poker-web . \u0026\u0026 docker run --rm -p 8080:80 bsv-poker-web\n\u003e ```\n\n## 工具链\n\n- Node ≥ 24（TypeScript 通过原生类型剥离直接运行；测试使用 `node --test`）。\n- pnpm 9（工作区）。`relay-go` / `indexer-go` 需要 Go ≥ 1.24。桌面端外壳使用 Rust/Tauri\n  （后续阶段）。\n\n## 命令\n\n| 命令 | 作用 |\n|---|---|\n| `pnpm typecheck` | 在整个工作区执行 `tsc --strict --noEmit` |\n| `pnpm test` | 运行所有 `node --test` 测试套件 |\n| `pnpm reproduce` | 重新生成每一个已提交的向量；不匹配时返回非零（core §14.5） |\n| `pnpm lint:opreturn` | 如果任何脚本中出现 `OP_RETURN`（0x6a）则失败（规则 2） |\n| `pnpm trace` | 需求 → 代码 → 测试 的可追溯性检查（core §13.3） |\n| `pnpm ci` | 完整的 CI 流水线（core §16，app §A14.2） |\n\n## 状态\n\n参见 [`spec/BUILD-STATUS.md`](./spec/BUILD-STATUS.md) 了解诚实的各阶段构建状态\n和指标。按阶段构建（core §17）：阶段 0 基础 → 阶段 1 一对一无限注德州扑克。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprof-faustus%2Fbsv-poker-zh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprof-faustus%2Fbsv-poker-zh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprof-faustus%2Fbsv-poker-zh/lists"}