This is more of a design question than a C++ question.
I'm working on a Texas Hold'Em poker game in C++. So far, I have a HandChecker
module written that is responsible for determining a player's best hand given his hole cards and the community cards. I decided to move this out into a separate HandChecker
project. HandChecker
depends on the Hand
and Card
classes that I have written in the main project though. In its current state, it requires a circular dependency between the main project and the HandChecker
project.
What's the best way to structure this project? Should I move the Hand
and Card
classes into its own separate project?