Changes between Version 18 and Version 19 of ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises


Ignore:
Timestamp:
Nov 15, 2016, 10:49:13 PM (9 years ago)
Author:
azhang
Comment:

done?

Legend:

Unmodified
Added
Removed
Modified
  • ControlSystems/SoftwareTeam/Training/GettingStarted/JavaExercises

    v18 v19  
    117117  * Warning: Clearing a List is not the same as setting it to null.
    118118
    119 == Review: Deck of Cards
     119== Review: Deck of Cards (Enums, Lists)
    120120Create a Deck of Cards. Each Card has a value Ace through King, and a suit. You can draw cards from the top of the deck, do a perfect riffle shuffle (split the deck in half and alternate cards) of the deck, and print out all the cards in the deck. Overriding the `toString` method will be very helpful.
     121
     122== Review: Creatures (Inheritance, Static)
     123Create a Garden of Plants. Plants and Animals are both Creatures. Make up some methods that you think are suitable for each, and create them (ex. What do all creatures do the same? What do all creatures do differently? What do only specific creatures do?). Make sure you include static variables and methods (ex. list of all creatures ever created).
     124
     125== Deck of Cards step 2:
     126Program a card game (war, go fish, etc.) using your deck of cards. Create any methods you will need for your game, and see how much you can optimize your game.
     127
     128== Creatures step 2:
     129Program a game using all your creatures classes (ex. text based agar.io). Create whatever methods and/or classes you will need, and try to keep your code as simple as possible.