A simple (less good looking) snake game written in C++20 & Qt6, tested under Linux.
The used modern C++ set of features isn't that large due to the project not really being that complicated...
Here are some references (besides basic doc) I used for this mini project:
- Geeks4Geeks article about how to create a snake game in Python
- A StackOverflow post whith a relative example
- cfanatic's repo using Qt5
- Only caused confusion & bugs... The user name should have been a warning to me...
- Learn Cpp Mersenne Twister tutorial
- This site really is worth gold!
- GCC 13.0 / Clang 15.0
- CMake 2.24
- Qt6 6.4
- Boost 1.81 | for testing
- spdlog 1.11 | for minimal logging
- clone repo
cmake -G Ninja -D CMAKE_BUILD_TYPE=Release -S ./snake-qt -B ./snake-qt/build snake
cmake --build ./snake-qt/build --target snake -j 8
# "--target snake_unit_tests" for the Snake classes unit tests
./snake-qt/build/snake