Skip to content

Latest commit

 

History

History
29 lines (19 loc) · 1.83 KB

readme.md

File metadata and controls

29 lines (19 loc) · 1.83 KB

Snake

Aim

A simple implementation of Snake at the terminal.

References

I'm following Robert Heaton's guide. I found out about this via /u/yngwiepalpateen's comment whilst browsing.

Implementation

Language

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.

Dependencies

The only external dependency I used in the source code was PDCurses.

In the test code I used GoogleTest.

Compilation

Source code will be in the src directory.

I'm using MinGW g++ on Windows.

Makefiles

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.

Testing

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.