Here you could find the code for "Roguelike game in C++", for more informations visit the project webpage:
http://solarianprogrammer.com/2012/07/12/roguelike-game-cpp-11-part-0/
You could use this program under the terms of GPL v3, for more details see:
http://www.gnu.org/copyleft/gpl.html
Copyright 2012 Sol from www.solarianprogrammer.com