Answered step by step
Verified Expert Solution
Question
1 Approved Answer
The Game of SET - Part I Due Monday, October 30th. Complete javadocs documentation is required 15points/class - 60 points total SET is a card
The Game of SET - Part I Due Monday, October 30th. Complete javadocs documentation is required 15points/class - 60 points total SET is a card game that can be played solo or with several people. There are 81 cards in the deck. Each card has 4 features: a shape (oval, squiggle or diamond), a color (red, purple, green), a number (one, two or three) and a fil (solid, striped, outlined) Color ovals, squiggles purp le or diamonds or green Number Shading solid, 001 striped, or three or outlined Set A "set" consists of 3 cards in which each of the cards' features are the same on each card or different on each card. examples and more information about the game can be found at setgame.com. The game begins by placing 12 cards face up (a 4x3 grid of cards). The player identifies sets of cards. When a set is identified, the three cards are removed from the board and replaced with three new cards from the deck. If, at any time the player decides there are no sets in the 12 cards, they may flip 3 more cards. If there are still no sets, they may flip 3 more cards. The maximum number of cards, face up on the table, at any time is 18. The play continues until the deck is depleted Implementation Phase I We will be implementing this game in three phases. Each phase is dependent up on the prior phase, so it is imperative that you do not fall behind. We will be implementing a solitaire version. For the first phase, due Monday, October 30th, you will implement the following classes: Card class represent one card. Each card has 4 features. Use enumerated types to represent the possible values for each features (for example: OUTLINE, SOLID, HATCHED). The class has only one constructor that accepts a Color, Fill Rank and Number. Once a Card is created; it is never changed. Implement at toString) method. Include a class (static) method that takes 3 Cards and determines if they form a set. Deck class-an ArrayList of Card Objects. The class has only one constructor, a default (no-arg) constructor that creates the 81 card deck. Include methods for shuffle ), toString, isEmpty and getTopCard. The getTopCard method should return a reference to the Card being removed from the Deck (not a copy!). BoardSquare class Each square on the "board" will contain a Card, as well its row, col position in the Board and some indication of whether or not the square is selected. The class has a single constructor that takes in a card, an integer row position, an integer column position. The BoardSquare is initialized to be unselected. Implement getters and setters for all instance variables
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started