Go Fish!

Description

  • Rais Kazi

  • November 2020

I developed a program to play a randomized game of Go Fish! between 2 computerized players in C++. I created a Card class which recorded the suit and rank. A Deck class stored all 52 cards and distributed the cards among the two players as the game progressed. Each player had an initial hand and would go back and forth asking for cards with a rank that they had in their own hand. If the user found a match, the pair would get booked. At the end of the game the player with more books won.

Technology