A simple console-based Go Fish card game written in C++. It allows you to play the game against a computer opponent.
- 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.
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.
- Generate build files:
cmake -B build -S . - Build the project:
cmake --build build
- Run the executable:
- Windows:
.\build\GoFish.exe
- Linux/macOS:
./build/GoFish
- Windows:
You can also compile it directly using g++:
g++ -std=c++20 main.cpp -o GoFishThen run the program with .\GoFish.exe (or ./GoFish on Unix systems).