str/apps/include/TargetFigure.h (23 lines of code) (raw):

#ifndef _INC_TARGET_FIGURE #define _INC_TARGET_FIGURE #include "BlockColor.h" #include "BoardAnalyzer.h" #include <array> using namespace std; class TargetFigure { private: int *initPositions; const int leftSquare[5] = {0, 1, 5, 2, 10}; const int pentagon[5] = {8, 14, 13, 9, 6}; const int rightSquare[5] = {0, 7, 3, 4, 11}; int targets[5]; BoardAnalyzer analyzer; public: TargetFigure(); ~TargetFigure(); void set(int *positions); void evaluate(); int getTargetNum(BlockColor color); }; #endif //_INC_TARGET_FIGURE