Diffstat (limited to 'noncore/games/kcheckers/checkers.h') (more/less context) (ignore 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 @@ | |||
8 | #define KING2 4 | 8 | #define KING2 4 |
9 | #define MAN2 5 | 9 | #define MAN2 5 |
10 | #define FULL 6 | 10 | #define FULL 6 |
11 | 11 | ||
12 | #define UL -6 | 12 | #define UL -6 |
13 | #define UR -5 | 13 | #define UR -5 |
14 | #define DL 5 | 14 | #define DL 5 |
15 | #define DR 6 | 15 | #define DR 6 |
16 | 16 | ||
17 | 17 | ||
18 | class Checkers | 18 | class Checkers |
19 | { | 19 | { |
20 | public: | 20 | public: |
21 | Checkers(int); | 21 | Checkers(int); |
22 | virtual bool go1(int,int)=0; | 22 | virtual bool go1(int,int)=0; |
23 | 23 | ||
24 | void go2(); | 24 | void go2(); |
25 | bool checkMove1(); | 25 | bool checkMove1(); |
26 | bool checkMove2(); | 26 | bool checkMove2(); |
27 | 27 | ||
28 | virtual bool checkCapture1()=0; | 28 | virtual bool checkCapture1()=0; |
29 | virtual bool checkCapture2()=0; | 29 | virtual bool checkCapture2()=0; |
30 | 30 | ||
31 | void setLevel(int i) {levelmax=i;}; | 31 | void setLevel(int i) {levelmax=i;}; |
32 | int getBoard(int i) {return board[i];}; | 32 | |
33 | int board[54]; | ||
33 | 34 | ||
34 | protected: | 35 | protected: |
35 | int level; // Current level | 36 | int level; // Current level |
36 | int levelmax; // Maximum level | 37 | int levelmax; // Maximum level |
37 | 38 | ||
38 | int turn(); | 39 | int turn(); |
39 | void turn(int &,bool capture=false); | 40 | void turn(int &,bool capture=false); |
40 | 41 | ||
41 | int to; | 42 | int to; |
42 | int board[54]; | ||
43 | int bestboard[54]; | 43 | int bestboard[54]; |
44 | int bestcounter; | 44 | int bestcounter; |
45 | 45 | ||
46 | virtual void kingMove2(int,int &)=0; | 46 | virtual void kingMove2(int,int &)=0; |
47 | 47 | ||
48 | virtual bool manCapture2(int,int &)=0; | 48 | virtual bool manCapture2(int,int &)=0; |
49 | virtual bool kingCapture2(int,int,int &)=0; | 49 | virtual bool kingCapture2(int,int,int &)=0; |
50 | 50 | ||
51 | virtual bool manCapture1(int,int,bool &)=0; | 51 | virtual bool manCapture1(int,int,bool &)=0; |
52 | virtual bool kingCapture1(int,int,bool &)=0; | 52 | virtual bool kingCapture1(int,int,bool &)=0; |
53 | 53 | ||
54 | }; | 54 | }; |
55 | 55 | ||
56 | #endif | 56 | #endif |