Thursday, July 19, 2012

Mastering C++ - A chess game

Knowledge of C++ is a prerequisite for my thesis. Since the only languages I'm profound in are Java, GML and Matlab, I'll spend quite some time mastering C++ during the summer vacation.

Last week I started reading the book Accelerated C++, which was a great introduction (better than C++ for Dummies which I tried last year). The great thing about this book is that it is example driven, motivating you to actually crawl behind your PC and program (which is the only way you can truly master a programming language).

After making my way through the first nine chapters, I started on a small project outside of the book to test my programming skills: a chess game. This would provide ample of exercise, since it involves input/output, inheritance, data management etc...

A quick preview of the output is shown below:
The code got a bit messy though, so I'll wait with posting a link to the source code ;)

Next up is implementing a simple ray tracer.

No comments:

Post a Comment