Skip Top Navigation Bar

Card Game

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

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:

Dealing Cards

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

Design Questions to Consider

Additional Updates:

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

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: