

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
Not enough gems
Cost: 6 gems
1: Polymorphism
incomplete
2: Get Edges
incomplete
3: Overlap
incomplete
4: Dragon Area
incomplete
5: Polymorphism Review
incomplete
6: Operator Overloading
incomplete
7: Operator Overload Review
incomplete
8: Overriding Built-in Methods
incomplete
9: Polymorphism Practice
incomplete
10: Polymorphism Practice
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Let's extend the Card logic we built to make a simple high-card low-card game.
We will be building a simple game where we compare two cards and depending on the round (high or low) determine the winner.
HighCardRound: The highest card winsLowCardRound: The lowest card wins1 if card1 is higher than card22 if card2 is higher than card10 if the cards are equal1 if card1 is lower than card22 if card2 is lower than card10 if the cards are equal