C. Program Description for Developers

To start, a scene is created that will make the game able to display cards. The cards are then made by making a vector from 1-52, adding 20 to each number to compensate for the 20 spaces that aren’t the deck in the retro_cards.png. Next, the deck is made with 4 sets of 1-13 to simulate 13 from each suit. shuffled_cards is then created by randomly ordering 1-52 and adding 20 to each from the retro cards file. The player hand is the first seven numbers in the shuffled cards, and the computer’s cards are the 8-15th numbers in shuffled cards. The next card is then assigned as 16 for the card after the last computer card. The player’s cards are then shown and each player is assigned zero points. It then looks for 4 matching cards in the player and computer’s hands by matching the first card to each other card in the hand, then second card, and so on. If it runs and one of the cards has 3 other matches, those cards are assigned blanks to remove them from the hand and whoever had the match gets a point. The player goes first after that. If both hands aren’t empty, the player inputs a card number. If the computer has the card number, you gain his cards and his cards are removed from his hand. If there is no match, it tells you to “Go Fish!” and the next card in the shuffled cards is added to your hand while the next card is increased by 1 so the card after that is the next in the shuffled deck. The code used to find a match is then run again and if there is a match, the player gets a point and his matching cards are removed from his hand. This then runs for the computer, who guesses a card it has in its hand. If there is no match, the go fish command is run, and if there is a match, it gains your cards and they are removed from your hand. The match command is then run for the computer. Once either the computer or player’s hand has no cards left, the game ends. If the player has more points, “You won!” is displayed, if the player has less points, “You Lost!” is displayed, and if the points are even, “You tied!” is displayed.