This is a simple command-line implementation of the classic card game Go Fish in Java.
This project started as a school assignment, but I decided to step it up and make it the best one in the class. My main goal was to use this as a learning project while getting myself comfortable with object-oriented programming (OOP) concepts, keeping data isolated, and writing code that is easy to read, understand, and follow. The logic may not be the most efficient, but it is intentionally kept simple for clarity.
- Play Go Fish against AI or with multiple players.
- Animated text output for a more engaging experience.
- AI players with random names and basic decision-making.
- Clear separation of game logic, player, card, and deck classes.
- Clone or download this repository.
- Make sure you have Java installed (JDK 8 or higher).
- Compile the source files in the
srcdirectory:javac src/*.java - Run the game:
java -cp src GoFish
- Practiced OOP principles: encapsulation, inheritance, and class design.
- Focused on keeping logic simple and data isolated within classes.
- Wrote code that is easy to follow for anyone learning Java or OOP.
Thanks for checking