Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Wrap Up0:58 with Jeremy McLain
Bam! Go forth and code.
Create a virtual pet or a virtual farm as described here: https://en.wikipedia.org/wiki/Digital_pet.
The pets should have a wellness quotient that increases with how well they are cared for. They should also complain when they need care. They should require care between certain times of the day so you’ll want to use System.DateTime as part of your program. Use what you learned in this course to make it easy to add character to your pets such as different behaviors that it has or needs that its owner should provide.
Mad Libs Framework
Produce a framework for Mad Libs games. The frameworks should allow you to create a catalog of MadLib templates with their text and identify the blanks and parts of speech for each blank. A player can pick the template and then fill it out to see the final text.
Recreate a computer console based version of the popular Battleship game. At a minimum, you’ll want to have classes for player, ship, and board. You might want to make other classes as well.
Start by making a two player game where each player has only one ship that takes up a single grid square on the game board. Players should be able select where they want to place their ships.
The game board is typically a 10x10 grid, but you might want to make the game board smaller to start out. You should be able to change the game board size by changing the value of a single constant.
You may also want to provide a single player option where you play against the computer. Use System.Random to randomly place the computer’s ships and to guess the location of its opponent’s ships. Think about ways you can make the computer a more challenging opponent by making it “smarter”.
You can continue to make the game more complex and interesting by adding more types of ships or allowing the ships to move. Come up with more ways to make the game more interesting and challenging and then implement them in your game.
Be sure to practice good input validation by checking that players aren’t accidentally placing ships outside of the boundaries of the game board or on top of other ships. Also check that players don’t accidentally guess locations that they’ve already guessed.
We've reached the end of the intermediate C sharp course.
And we've covered a ton.
Even if you think you've understood everything,
I encourage you to go back and just watch the videos again.
You might consider increasing the playback speed.
I promise you'll get something more out of it.
It will also help solidify some of these concepts.
While creating the Treehouse Defense game,
you've gotten to use most of the features of the C sharp language.
Don't worry if you haven't memorized how to do everything.
I often have to refresh myself on the details
of how to use certain parts of the language.
The important thing is to know that they're there and what they're there for.
I recommend that you use the code we wrote in this course as a reference when
doing other projects.
Because this is one example that you're already familiar with.
In the teacher's notes of this video, I've listed a few project ideas that you
can do on your own to practice what you've learned here.
Until next time, happy coding.
You need to sign up for Treehouse in order to download course files.Sign up