A simple implementation of Snake at the terminal.
I'm following Robert Heaton's guide. I found out about this via /u/yngwiepalpateen's comment whilst browsing.
I treated this as a learning project in C++ after reading A Tour of C++. Almost certainly I forgot all the important bits, and used what I remembered in wrong and dangerous ways.
The only external dependency I used in the source code was PDCurses.
In the test code I used GoogleTest.
Source code will be in the src directory.
I'm using MinGW g++ on Windows.
I'm using makefiles + gnu make. Using makefiles is pretty new to me. I'm probably breaking a bunch of standards because I only read enough about makefile syntax to make life convenient for me.
In particular, at least in the current state, the makefiles depend on the particular directories I installed things like googletest and pdcurses. Also I must have the dependency syntax messed up since make
doesn't recompile when the .tpp
files are changed. I've been getting my with make clean; make
, but should work out what's going on there.
I did a little bit of testing with GoogleTest, see the test directory. There's far less than sufficient, at least for a TDD style workflow, but it was a good exercise to get familiar with some basic GoogleTest syntax.