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. 0:00 And we've covered a ton. 0:03 Even if you think you've understood everything, 0:05 I encourage you to go back and just watch the videos again. 0:07 You might consider increasing the playback speed. 0:10 I promise you'll get something more out of it. 0:13 It will also help solidify some of these concepts. 0:16 While creating the Treehouse Defense game, 0:20 you've gotten to use most of the features of the C sharp language. 0:22 Don't worry if you haven't memorized how to do everything. 0:26 I often have to refresh myself on the details 0:29 of how to use certain parts of the language. 0:32 The important thing is to know that they're there and what they're there for. 0:34 I recommend that you use the code we wrote in this course as a reference when 0:39 doing other projects. 0:43 Because this is one example that you're already familiar with. 0:44 In the teacher's notes of this video, I've listed a few project ideas that you 0:48 can do on your own to practice what you've learned here. 0:53 Until next time, happy coding. 0:56
You need to sign up for Treehouse in order to download course files.Sign up