26 #ifndef _ABSTRACTBOARD_H_ 27 #define _ABSTRACTBOARD_H_ 39 typedef std::pair<int,int> p_cc;
56 MoveNC(
char X,
char Y,
char COLOR);
58 bool operator==(
const MoveNC& mnc)
const;
64 Move(
char xx,
char yy,
char cc);
65 Move(
char xx,
char yy,
char cc, std::vector<p_cc > cap);
70 std::vector<p_cc >* captures;
80 std::vector<Move> undostack;
88 int play(
int x,
int y,
const char* color)
throw(
BoardError);
91 void remove(
int x,
int y,
bool removeFromUndostack);
92 char getStatus(
int x,
int y);
93 void setStatus(
int x,
int y,
char val);
100 void undostack_append_pass();
101 p_cc undostack_top_pos();
102 char undostack_top_color();
103 std::vector<p_cc > undostack_top_captures();
104 void undostack_push(
Move& m);
105 void undostack_pop();
112 int* neighbors(
int x,
int y);
113 std::vector<p_cc >* legal(
int x,
int y,
char color);
114 std::vector<p_cc >* hasNoLibExcP(
int x1,
int y1,
int exc=-1);
Definition: abstractboard.h:49
Definition: abstractboard.h:77
Definition: abstractboard.h:61
Definition: abstractboard.h:34