A Class Project in Java, April 2020
Objective: Practice object oriented programing in Java with sorting algorithm techniques.
What I Did: I coded a program that basically plays out the card game Old Maid with user (or player) input and a score board.
INSTRUCTIONS & RULES:
The standard 52-card pack is used, however, one random card is removed, leaving a total of 51 cards. Then, any player shuffles the pack and deals them around, one at a time to each player, until all the cards have been handed out. Players do not need to have an equal number of cards. After that, each player removes all pairs from their hand face down. If a player has three-of-a-kind, they remove only two of those three cards. After all pairs have been removed from each player's deck, a random player will be choosen to go first. That player will then get to draw a random card from the player to their right. Then this player discards any pair that may have been formed by the drawn card. The player then offers their own hand to the player on their left. The game proceeds in this way until all cards have been paired except one - the odd random card that was taken out from the beginning, which cannot be paired - and the player who has that card is the Old Maid! (and looses).
Outcomes: I learned about interactive programing in Java. Gained better understanding of what object oriented programming is.
Download Files to Run Code:
I also do freelancing Web Development! If you need a website made, feel free to reach out to inquire.
Based in San Francisco, CA 94118