20 #define ACCUM_CNTR_THRESH 4
31 double frame_w, frame_h = 0;
32 double frame_w_midpoint, frame_h_midpoint = 0;
33 bool gameStarted =
false;
34 int num_dealer_cards = 0;
35 int num_player_cards = 0;
37 int prev_total_cards = 0;
42 std::vector<int> cards;
43 std::vector<cv::Point_<int>> card_midpoint;
48 std::vector<bool> whos_hand;
51 std::vector<std::vector<int>> card_accum;
52 std::vector<std::vector<cv::Point_<int>>> card_midpoint_accum;
54 void accumulator(std::vector<int> &cards_names_int, std::vector<cv::Point_<int>> &cards_centre_pts);
55 std::vector<int> convertStr2Int(std::vector<cv::String> &card_names);
56 void whosHand(cv::Point_<int> &card_midpoint);
57 void clear_whosHand();
58 void play_game(std::vector<int> cards_played, std::vector<cv::Point_<int>> cards_centre_pts);
64 GamePlay(
double res_w,
double res_h);
Generic abstract Callback Interface class.
Definition: CallbackLinker.h:20
Class to implement the gameplay logic/architecture.
Definition: GamePlay.h:27
void unregisterLEDCallback()
Unregister callback for the LED class.
Definition: GamePlay.cpp:323
void nextCallback(AcePlaysUtils &callbackData)
Implement the nextCallback virtual method to pass information down the pipeline.
Definition: GamePlay.cpp:222
void unregisterStrategyCallback()
Unregister callback for the LED class.
Definition: GamePlay.cpp:340
GamePlay(double res_w, double res_h)
Construct a new Game Play:: Game Play object.
Definition: GamePlay.cpp:18
void registerLEDCallback(CallbackLinker *cb)
Register callback for the LED class.
Definition: GamePlay.cpp:315
~GamePlay()
Destroy the Game Play:: Game Play object.
Definition: GamePlay.cpp:348
void registerStrategyCallback(CallbackLinker *cb)
Register callback for the Strategy Engine class.
Definition: GamePlay.cpp:332
Class implementing the optimum Blackjack strategy.
Definition: StrategyEngine.h:22
Class to control the Rasp Pi pins and toggle LEDs ON/OFF.
Definition: ToggleLED.h:20
Utility structure used by the AcePlays repo for passing necessary information down the processing pip...
Definition: Card.h:80