Skip Top Navigation Bar

Card Game

Create a deck of cards and write your own card game.

Required Knowledge

This series of labs require you to write program code to use the following topics. Tutorials for available topics have been linked.

Missions

Mission 1: Data, Data, Data...

We are creating a card game. We will need a deck of cards. Create the following:

Need help? Consult the following tutorials:

Mission 2: Dealing Cards

Let's deal cards between two players. Complete the following:

Design Questions to Consider

Additional Updates:

Mission 3: Our First Game

Create a game where all the cards are dealt between two players. Each player plays a card and the higher card wins the lower card. The winner has both played cards added to their hand. If the two played cards have the same value, each player plays another card until the two cards played are not the same value or one of the players runs out of cards to play.

Design Questions to Consider

Mission 4: Shuffle The Deck

Our game is great, but extremely predictable since the cards are not shuffled.

Different Shuffling the Deck Algorithms

Need help? Consult the following tutorials:

Mission 5: Creating Card Visuals with Output

To make this game more usable, it would be great to have visuals of the cards. You could do this in many ways. You could use images, JavaFX, or in the case of this exercise, textblocks.

Design Questions to Consider

Need help? Consult the following tutorials: