Ecosyste.ms: Timeline
Browse the timeline of events for every public repo on GitHub. Data updated hourly from GH Archive.
Raltour pushed 1 commit to main Raltour/Snake
- 添加了部分main函数while循环逻辑 添加了食物的初始化,套了个空壳的食物生成函数 将面板初始化函数改名为initBoard 7404f29
Raltour pushed 1 commit to main Raltour/Snake
- 修改了一些结构体定义时的bug 将snake和food的内存管理方式改为malloc形式,便于随时清理 0960742
Raltour pushed 1 commit to func Raltour/Snake
- 修改了检测蛇有没有吃到食物的函数 生成食物的问题未能修改 为保证main函数正常执行,决定用malloc分配食物与蛇的内存(尤其是食物),便于管理内存,防止堆栈溢出 因此先合并到main分支中修改相关部分 d296cb0
Raltour pushed 1 commit to main Raltour/Snake
- Create snakemove&isDead7&foodgeneration (#1) 我不太会看你们写的main函数,有些函数名字和函数里面的变量名字可能对应不上。 5628cce
Raltour closed a pull request on Raltour/Snake
Create snakemove&isDead7&foodgeneration
//移动蛇 void moveSnake() { int newX = snakeHead->x; int newY = snakeHead->y; //根据当前方向更新蛇头坐标 if(currentDirection=='R') { newX += 1; } else if (currentDirection == 'L') { newX...Raltour pushed 2 commits to main Raltour/UCB-CS61B
Raltour pushed 3 commits to main Raltour/UCB-CS61B
Raltour pushed 2 commits to main Raltour/UCB-CS61B
Raltour pushed 1 commit to main Raltour/Snake
- 加入了蛇转弯的框架 先不用管按键操作的部分,我估计比较麻烦,可以最后添加,目前先全部用代码对蛇进行控制和测试 转弯的部分不太好实现 28a66e3