{"id":39991181,"url":"https://github.com/yangxin9003/chinese-chess-in-git","last_synced_at":"2026-01-19T00:40:26.159Z","repository":{"id":58750713,"uuid":"532801146","full_name":"yangxin9003/chinese-chess-in-git","owner":"yangxin9003","description":"在 git 里进行象棋PVP ","archived":false,"fork":false,"pushed_at":"2022-09-23T02:51:19.000Z","size":24,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-20T16:00:59.939Z","etag":null,"topics":["chess","game","git","pvp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yangxin9003.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-09-05T08:01:20.000Z","updated_at":"2023-03-24T08:44:56.000Z","dependencies_parsed_at":"2023-01-18T20:01:45.301Z","dependency_job_id":null,"html_url":"https://github.com/yangxin9003/chinese-chess-in-git","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yangxin9003/chinese-chess-in-git","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxin9003%2Fchinese-chess-in-git","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxin9003%2Fchinese-chess-in-git/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxin9003%2Fchinese-chess-in-git/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxin9003%2Fchinese-chess-in-git/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yangxin9003","download_url":"https://codeload.github.com/yangxin9003/chinese-chess-in-git/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yangxin9003%2Fchinese-chess-in-git/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28554904,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T23:48:35.235Z","status":"ssl_error","status_checked_at":"2026-01-18T23:47:49.178Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["chess","game","git","pvp"],"created_at":"2026-01-19T00:40:25.243Z","updated_at":"2026-01-19T00:40:26.150Z","avatar_url":"https://github.com/yangxin9003.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 中国象棋 in GIT（PVP）\n\n命令行中运行的中国象棋（pvp），利用 git 仓库进行数据交换。结伴编程摸鱼新方式。\n\n```\n车-马-相-士-将-士-相-马-车\n｜-｜-｜-｜-｜-｜-｜-｜-｜\n｜-炮-｜-｜-｜-｜-｜-炮-｜\n兵-｜-兵-｜-兵-｜-兵-｜-兵\n｜-｜-｜-｜-｜-｜-｜-｜-｜\n｜-｜-｜-｜-｜-｜-｜-｜-｜\n卒-｜-卒-｜-卒-｜-卒-｜-卒\n｜-炮-｜-｜-｜-｜-｜-炮-｜\n｜-｜-｜-｜-｜-｜-｜-｜-｜\n车-马-象-士-帅-士-象-马-车\n```\n\n## 使用方式\n\n* 提前准备一个双方可连接的git仓库（如：github、 gitee）\n* clone 到本地（保证双方都有提交权限）\n* 进入目录，配置用户名、切换分支（不切换也可以通过命令进行自动新建分支，配置用户名）\n* 执行 `npx chinese-chess-pvp -u \u003cusername\u003e -w \u003clocal git repo path\u003e -b \u003cbranch name\u003e`\n\n### 帮助文档\n```sh\nnpx chinese-chess-pvp -h\n```\n\n## 细节说明\n* 新建游戏的人为红方，红方先行\n* 红方不可以改名字，没次进入游戏必须名称相同，否则红发无法操作；黑方随意\n* 默认在当前 git 仓库中初始化，可通过 `-w` 参数改变工作目录\n* 默认在当前分支进行游戏，请不要在你的工作 git 上进行\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangxin9003%2Fchinese-chess-in-git","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyangxin9003%2Fchinese-chess-in-git","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyangxin9003%2Fchinese-chess-in-git/lists"}