Diffstat (limited to 'noncore/games/kcheckers/checkers.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/games/kcheckers/checkers.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/games/kcheckers/checkers.h b/noncore/games/kcheckers/checkers.h index bd2be08..2592fb1 100644 --- a/noncore/games/kcheckers/checkers.h +++ b/noncore/games/kcheckers/checkers.h @@ -8,49 +8,49 @@ #define KING2 4 #define MAN2 5 #define FULL 6 #define UL -6 #define UR -5 #define DL 5 #define DR 6 class Checkers { public: Checkers(int); virtual bool go1(int,int)=0; void go2(); bool checkMove1(); bool checkMove2(); virtual bool checkCapture1()=0; virtual bool checkCapture2()=0; void setLevel(int i) {levelmax=i;}; - int getBoard(int i) {return board[i];}; + + int board[54]; protected: int level; // Current level int levelmax; // Maximum level int turn(); void turn(int &,bool capture=false); int to; - int board[54]; int bestboard[54]; int bestcounter; virtual void kingMove2(int,int &)=0; virtual bool manCapture2(int,int &)=0; virtual bool kingCapture2(int,int,int &)=0; virtual bool manCapture1(int,int,bool &)=0; virtual bool kingCapture1(int,int,bool &)=0; }; #endif |