I did section 2 a while back but felt that I had to come back to it since I started the Blender Complete course that Ben and Micheal teach. I finally learned how to use the lecture discussion boards and it made a world difference in my learning.
Anyways, following along with Ben I was able to rebuild my previous work and create a game that allowed the user to select the difficulty and get a hint to help them play the game.
I come from a web development background so I see areas where the code could be shorter but I couldn’t get it to work that way. So section 2 forced me to think differently. I hope you guys like my game. I created a gist where you can download a copy of my game. It originally wasn’t that different from our Instructor’s code but I decided that in order to showcase the improvement that I made easily. I need most of the code to look like his so that you all could find my code within the code.
At the bottom of FBullCowGame.cpp you will find 3 new functions that I made. They correspond to what is in the FBullCowGame.h file. In main.cpp there is a function called GetPlayerChoice() that handle allowing the player to choose the level of difficulty.
Please run the code and tell me what you think. You can comment here or at the gist.
Below is the link to the code.