Question: Using JavaFX, create a GUI based version of the card game Hockey. This version of the game uses a standard deck of 52 playing cards.

Using JavaFX, create a GUI based version of the card game Hockey. This version of the game uses a standard deck of 52 playing cards. Create a game between Human and AI. Base the game off the graph below

Using JavaFX, create a GUI based version of the card game Hockey. Below are the Rules of the game:

Dealing: Start by dealing entire deck of 52 cards (without jokers) to the players - 13 cards each. Players sitting opposite of each other are partners. Once all cards are dealt, the game can begin. Playing once through the deck - four deals of 5 cards each and one of 6 cards each - is known as a "period". After a period is over, the next period begins and players switch as dealers. Three periods constitute a complete game. Like in hockey the player with the most goals after 3 periods win the game.

Scoring: A player scores by matching the card played before them. Example: if a player plays a 7 of hearts and the next player plays any other 7 then that team collects that goal, and clears the cards. Play continues until all the cards have been played. At the end of each period goals are counted and tallied.

Examples: Player A plays a 7, player B plays a 7 (breakaway for B), player A plays a 4, player B plays a 4 (goal for B). Player A plays a 7, B plays a 7 (breakaway for B), A plays a 4, B plays a 5 (breakaway lost), A plays a 9, B plays a 9 (breakaway for B - not a goal), A plays a Jack (breakaway for A), B plays an 8, A plays an 8 (goal for A). A goal itself is not a breakaway. After a goal a new breakaway is needed before a new goal can be scored. However, a breakaway can be created by matching the card used to score a goal.

Stage stage Boxes 22 Player integer score Boolean tum-false Boolean winner false Deck crealeHlands ake TurnO fabstracty Card Hand Human Al String sut String value feld:typ takeTun keum addNew Card Card)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!