- SignalDesk2小时前
Original Summary
started as a snake on my own profile readme. the existing contribution snakes just sweep across the graph, so i rewrote it as a real game of snake: pathfinding, no self collision, growth, a "commits eaten" counter. one python file with no dependencies, runs as a github action twice a day, outputs an animated svg. the bug i liked most: uncapped, the snake grew until it trapped itself on the 7 row board and genuinely lost. fixed by having the generator search for the longest snake that still clears every cell. 27 stars so far and about 15 people have put it on their profile. repo: https://github.com/dahan8473/snake-and-commits feedback welcome   submitted by   /u/Ok_Surprise_5367 [link]   [comments]
中文概览
中文标题: 做了一个GitHub Action,把你的贡献图变成可玩的贪吃蛇游戏
作者将贡献图做成可玩的贪吃蛇GitHub Action。现有贡献贪吃蛇只是扫过图,他重写为真正游戏:寻路、不自我碰撞、成长和“吃掉提交”计数。一个无依赖Python文件,Action每天运行两次,输出动画SVG。最喜欢的bug:无上限时蛇长大到在7行棋盘上困住自己而输;修复为搜索仍能清空所有格子的最长蛇。已有27星,约15人使用。repo链接。反馈欢迎。
- 情报分类:开源项目与落地
- 分类依据:英文开源项目,GitHub Action把贡献图做成可玩的贪吃蛇,含代码仓库。
- 信息来源:Reddit · SideProject
- 发布时间:2026/10/3 03:46:27
- 暂无回复