Solutions - 4th Edition
This page contains the solutions for the challenges contained in The C# Player’s Guide, 4th Edition.
These are here to help you if you get stuck on one of the challenges, and also to give you a chance to compare your answer against somebody else’s.
There is always more than one way to solve a problem. Just because your version and mine are different does not mean yours is wrong.
Note: I’m interested in also posting others’ answers to these challenges to give people alternative perspectives. If you want to share your solutions with others, let me know! (I’d love to have solutions from other veteran C# programmers, as well as other veteran programmers new to C#, and also people brand new to programming, to get various perspectives.)
If you discover any problems or bugs in the sample code provided here, please report it so I can fix it.
Some Helpful Downloads
- AllSolutions.zip: The source code for the solutions to all challenges in the book.
- FountainOfObjectsFinal.zip: My final code for the Fountain of Objects challenge.
- FinalBattleExpansionPathStart.zip: The recommended starting point for anybody doing The Final Battle through the Expansion Path. Begin here and add your own code for expansions.
- FinalBattleFinal.zip: My solution for The Final Battle, including all 18 sub-challenges.