{"id":16933460,"url":"https://github.com/zrr1999/bonegame","last_synced_at":"2026-04-20T14:02:20.427Z","repository":{"id":89251306,"uuid":"303025720","full_name":"zrr1999/bonegame","owner":"zrr1999","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-05T05:13:28.000Z","size":45,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-07T08:43:51.873Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zrr1999.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,"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":"2020-10-11T02:16:50.000Z","updated_at":"2023-04-04T16:11:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d6d5415-f521-4df0-9699-eed0d2dd473f","html_url":"https://github.com/zrr1999/bonegame","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zrr1999/bonegame","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fbonegame","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fbonegame/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fbonegame/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fbonegame/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zrr1999","download_url":"https://codeload.github.com/zrr1999/bonegame/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zrr1999%2Fbonegame/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32050451,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T11:35:06.609Z","status":"ssl_error","status_checked_at":"2026-04-20T11:34:48.899Z","response_time":94,"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":[],"created_at":"2024-10-13T20:49:31.596Z","updated_at":"2026-04-20T14:02:20.410Z","avatar_url":"https://github.com/zrr1999.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BoneGame\n\n[![standard-readme compliant](https://img.shields.io/badge/readme%20style-standard-brightgreen.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)![Upload Python Package](https://github.com/zrr1999/PyTex/workflows/Upload%20Python%20Package/badge.svg)\n\n本代码库提供了制作小游戏的基本工具，实现了若干小游戏，\n并利用OpenGL实现渲染。\n\n\n## 安装[![Downloads](https://pepy.tech/badge/bone-games)](https://pepy.tech/project/bone-games)\n\n这个项目使用 [Python](https://www.python.org/downloads/) 开发，请确保你本地安装了它。\n\n使用PyPI安装。\n\n```sh\n$ pip install bone-games\n```\n\n本地安装。\n```sh\n$ pip install .\n```\n\n## 使用说明\n\n使用时，您可以直接引入GoBang类并实例化。\n\n```python\nfrom bonegame import GoBang\ngame = GoBang()\n```\n\n你可以调用game对象的所有方法，大部分方法支持函数式编程。\n\n```python\ngame.down(0, (1, 1))  # 下子\ngame.render()  # 显示\n```\n\n## 代码示例\n\n如下代码可以直接运行，点击屏幕轮流进行下棋。\n\n```python\nfrom bonegame import GoBang\nimport cv2\n\nHEIGHT, WIDTH = 640, 640\nSIZE = 7\nWIN_NAME = \"GoBang\"\n\ngame = GoBang(SIZE, HEIGHT, WIDTH)\ncv2.namedWindow(WIN_NAME, cv2.WINDOW_AUTOSIZE)\ncv2.setMouseCallback(WIN_NAME, game.mouse_event)  # 创建默认鼠标事件（轮流下子）\nwhile True:\n    game.render(WIN_NAME)\n    key = cv2.waitKey(1)\n    if key == ord('q'):\n        break\n```\n\n## 开发功能\n\n- [x] 五子棋\n- [x] 多人五子棋\n- [ ] 优化逻辑，减少类依赖关系\n- [ ] 更好的多人五子棋接口\n- [ ] 中国象棋\n- [ ] 围棋\n- [ ] 决策树\n- [ ] 添加详细注释（代码文档）\n- [ ] 整合贪吃蛇\n- [ ] 增加OpenGL等其他渲染方式\n- [ ] 使用Taichi或Torch加速计算部分\n\n## 更新日志\n\n- (2020.10.27) v0.1.2\n    - 鼠标事件、图形渲染等全部移植到OpenGL。\n    - 增加了一个调用dll的五子棋例子。\n- (2020.10.11) v0.1.1\n    - 将鼠标事件移入GoBang类。\n- (2020.10.10) v0.1.0 \n    - 实现了五子棋并提供了接口允许开发者进行扩展。\n\n## 维护者\n\n[@詹荣瑞](https://github.com/tczrr1999)\n\n## 如何贡献\n\n非常欢迎你的加入！[提一个 Issue](https://github.com/tczrr1999/bonegame/issues/new) 或者提交一个 Pull Request。\n\n### 贡献者\n\n感谢以下参与项目的人：\n\n## 使用许可\n\n禁止将本辅助库及衍生品上传到百度网盘。\n[GNU](LICENSE) © Rongrui Zhan","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrr1999%2Fbonegame","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzrr1999%2Fbonegame","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzrr1999%2Fbonegame/lists"}