Skip to content

misha-jehangir/go-fish

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Fish

A simple console-based Go Fish card game written in C++. It allows you to play the game against a computer opponent.

Features

  • User Accounts: Register a username and password (saved locally in users.txt).
  • Save and Load: Save your game progress and resume it later.
  • Scoreboard: View previous game results stored in scoreboard.txt.

How to Play

The player and the computer take turns asking each other for card ranks. If the opponent has cards of that rank, they hand them over. Otherwise, you "Go Fish" and draw a card from the deck. The goal is to collect sets of 4 cards of the same rank.

How to Compile and Run

Using CMake

  1. Generate build files:
    cmake -B build -S .
  2. Build the project:
    cmake --build build
  3. Run the executable:
    • Windows:
      .\build\GoFish.exe
    • Linux/macOS:
      ./build/GoFish

Direct Compilation

You can also compile it directly using g++:

g++ -std=c++20 main.cpp -o GoFish

Then run the program with .\GoFish.exe (or ./GoFish on Unix systems).

About

Go-Fish Card Game | Programming Fundamentals Project

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors