Difference between revisions of "Acey Deucey assignment"
From WLCS
Line 1: | Line 1: | ||
− | + | == Objective(s) == | |
* You will implement the card game Acey Deucey | * You will implement the card game Acey Deucey | ||
* You will design and implement Java classes | * You will design and implement Java classes | ||
* You will analyze the rules and design the flow of your game | * You will analyze the rules and design the flow of your game | ||
− | + | == Resource(s) == | |
* [https://en.wikipedia.org/wiki/Acey_Deucey_(card_game) Acey Deucey Rules] | * [https://en.wikipedia.org/wiki/Acey_Deucey_(card_game) Acey Deucey Rules] | ||
− | + | == Direction(s) == | |
− | == Card class == | + | === Card class === |
* Attributes | * Attributes | ||
** String suit | ** String suit | ||
Line 25: | Line 25: | ||
*** returns the numerical value of the card | *** returns the numerical value of the card | ||
− | == Deck class == | + | === Deck class === |
* Attributes | * Attributes | ||
** Card[] deck | ** Card[] deck |
Revision as of 09:39, 1 December 2015
Objective(s)
- You will implement the card game Acey Deucey
- You will design and implement Java classes
- You will analyze the rules and design the flow of your game
Resource(s)
Direction(s)
Card class
- Attributes
- String suit
- String name
- Constructor
- Card() - default constructor
- Card(String suit, String value) - specific constructor
- Sets the internal attributes to the same as the parameters
- Methods
- String getSuit()
- void setSuit()
- String getName()
- void setName()
- int getValue()
- returns the numerical value of the card
Deck class
- Attributes
- Card[] deck
- Constructor
- Use the Deck class that we designed and implemented in class
- Write all the comments for the flow of the program (i.e. outline how your program will run in comments)
- Implement the game in the main class