Terminal snake game in C
- C 100%
|
|
||
|---|---|---|
| .gitignore | base movement kind of works | |
| coordinate.h | Use typedef to avoid having to type struct/enum every time | |
| food.c | pass parameter by const pointer instead of by value in function | |
| food.h | pass parameter by const pointer instead of by value in function | |
| main.c | Adjust board width | |
| snake.c | Remove separate file for defining the board, pass the board as a | |
| snake.h | Remove separate file for defining the board, pass the board as a | |
| utils.c | fixed issue where food could spawn on snake and break game, this brought with it a few changes in the overall project structure | |
| utils.h | fixed issue where food could spawn on snake and break game, this brought with it a few changes in the overall project structure | |