diff options
author | zedarider <ymherklotz@gmail.com> | 2016-11-10 18:19:22 +0000 |
---|---|---|
committer | zedarider <ymherklotz@gmail.com> | 2016-11-10 18:19:22 +0000 |
commit | 95f75aa7aacf5e0e1ef11e8d200f84de44bd891f (patch) | |
tree | 5ffafeb62866e121453b82e11e402a27a6a30256 /src/chess_board.cpp | |
parent | 375e4b989af8b4ac2c3479ea32f9324f29ce9071 (diff) | |
download | ChessAI-95f75aa7aacf5e0e1ef11e8d200f84de44bd891f.tar.gz ChessAI-95f75aa7aacf5e0e1ef11e8d200f84de44bd891f.zip |
finished the tester
Diffstat (limited to 'src/chess_board.cpp')
-rw-r--r-- | src/chess_board.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/chess_board.cpp b/src/chess_board.cpp index 4891981..8b449ca 100644 --- a/src/chess_board.cpp +++ b/src/chess_board.cpp @@ -62,6 +62,8 @@ chess_ai::chess_board::chess_board(board_state state) : SIZE(CHESS_BOARD_SIZE) { } } +chess_ai::chess_board::~chess_board() {} + void chess_ai::chess_board::init_board_vector() { for(unsigned i = 0; i < SIZE; ++i) { std::vector<chess_ai::chess_piece> tmp_vec; @@ -158,7 +160,6 @@ chess_ai::move_error chess_ai::chess_board::move_piece iterate_board(it, orig_x, orig_y); iterate_board(new_it, dest_x, dest_y); - switch(it->type) { case pawn: return move_pawn(it, new_it, taken_piece); |