https://github.com/zsarge/snake
Inspired by this video: https://youtu.be/TOpBcfbAgPg
https://github.com/zsarge/snake
cpp snake
Last synced: 9 months ago
JSON representation
Inspired by this video: https://youtu.be/TOpBcfbAgPg
- Host: GitHub
- URL: https://github.com/zsarge/snake
- Owner: zsarge
- License: mit
- Created: 2021-08-21T23:33:23.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-09-18T05:12:52.000Z (over 4 years ago)
- Last Synced: 2025-01-27T14:49:33.267Z (over 1 year ago)
- Topics: cpp, snake
- Language: C++
- Homepage:
- Size: 79.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# snake
Inspired by [this video](https://youtu.be/TOpBcfbAgPg)
This project uses the snake_case naming convention, for obvious reasons.
This project uses C++ 17.
-------
## in the project directory, build and run with:
```
make
```
```
./build/snake.out
```
-------
## To do:
- add [Hamiltonian pathing](https://en.wikipedia.org/wiki/Hamiltonian_path)
-------
### Other:
I used a program structure that made sense to me, but it's one I haven't seen before.
I seperated the different topics in my code into namespaced functions (i.e. IMAGE_GEN & AI)
that operate on one snake object. I guess the alternative is having all that code in the main
snake class, but I like the way that namespaces seperate the concerns of the code.
TL;DR: idk what I'm doing, but I'm learning