Assignment Seven
Let's do something fun this time around. We now have enough tools to create a functioning game.
This will work something like the Olympics. There will be 3 different levels of game you can try for. If you shoot for the low bar you better do it perfect and if you shoot for the high bar, there will be some latitude in the grading as well as some bleed over extra credit if you get it correct.
  • NOTE: Your variables and functions from this lab on are to be saved in a particular format. If they are not, you will not get credit for your assignment. Variables should be named with the first initial of your first name, first initial of your last name, following an underscore and the end of your variable name.
    Ex: txtFirstName_nc

  • You will select a game for this project. It can be any game that requires the use of a random number generator -- card games and dice games are the easy selection here.
  • Higher scores will result from your proper use of exception handling and/or User Input Validation (The user should not be able to break your game by entering something unexpected).
  • You will create a game that matches one of the 3 levels listed below:
    1. Low Bar - The easiest path is to design one side of a card or dice game that runs until the user tells the game to stop. Each play should have more than one cycle (hit me on Blackjack), this will require nested statements. Your game should be able to determine a winning or losing hand.
      Examples: Blackjack, 21, Craps
    2. Middle Bar - In this option you will either take a low bar game and make it work with 1 human and 1 computer player OR make a 1 player game that has more intricate rules (ex: Poker or Yahtazee). If you choose the more intricate game, your game should follow a play through to its conclusion -- be able to categorize and score your options (per play not for the entire game).
    3. High Bar - Make a fully working game that keeps score for the entire game. It must have at least 2 players. This is the high bar so rather than telling me what your cards or dice are, show me with a picture. (Note: you can do this with listBoxes, however, I suggest if you take this route, check out Arrays in Chapter 8. Arrays will make this much easier.
  • Save your program to a file and take a screenshot of the output after you have run your program. You will have 2 files that you will send as attachments to your email (Your proof screenshot and a zipped solutions project folder.
    (DO NOT COPY AND PASTE YOUR CODE, PROGRAM(S) OR SCREENSHOTS INTO THE BODY OF THE EMAIL. THIS WILL RESULT IN A GRADE OF ZERO !)
    Make sure to include your name and the assignment number you are emailing.
If you are having trouble making your code work, you need to see me during lab hours so I can help you get through your code.
Return to Assignments Index