Page 1 of 1

Intermediate Tutorial 7

Posted: September 13th, 2017, 4:56 am
by jamesmfox
I Just finished the homework for tutorial 7(streams, std::string). Chili asked to make snek game use a config file. I was hoping someone wouldn't mind looking over my code and giving me some pointers :D

https://github.com/JamesMFox/SnekGame/tree/I7-hw

Re: Intermediate Tutorial 7

Posted: September 14th, 2017, 4:20 am
by chili
Seems alright. I personally prefer using >> directly for parsing. Less stuff to mess around with (substr / stoi). If you wanted to take things further, some error detection (missing fields) would be nice.

Overall, it works and isn't too hard to follow, good works.