Creating the Pirate Town Game - C++

After hard months of plundering the Caribbean, your ship, the BloodWind, docks in St. Marie. Getting off the ship for the first time, what do you do? Some of your options get pretty weird. Well, here is the game for you.

As you study this game, notice the use of namespaces to encapsulate each major section. To create a really great game, you will want each section to be much, much longer. After checking this one out, see how you can improve upon it. Don’t forget to include the menu files in you project. Happy plundering!

First, save the following code as a header file named pirateTown.h.

Now, enter and run the following source code file called pirateTown.cpp.



All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

C++ Topics