diff options
author | zedarider <ymherklotz@gmail.com> | 2017-01-17 15:54:43 +0000 |
---|---|---|
committer | zedarider <ymherklotz@gmail.com> | 2017-01-17 15:54:43 +0000 |
commit | bb05406acaeda73956df143bfbde2f8f612795e7 (patch) | |
tree | ce4aa2788b23fe9fe2afc78517e8840086ee473c | |
parent | eda873106d7f91214a4e4a32ee6b16889b248216 (diff) | |
download | ChessAI-bb05406acaeda73956df143bfbde2f8f612795e7.tar.gz ChessAI-bb05406acaeda73956df143bfbde2f8f612795e7.zip |
removed unnecissary declarations
-rw-r--r-- | src/test_bench.cpp | 57 |
1 files changed, 27 insertions, 30 deletions
diff --git a/src/test_bench.cpp b/src/test_bench.cpp index 68c93fb..8c79568 100644 --- a/src/test_bench.cpp +++ b/src/test_bench.cpp @@ -1,10 +1,10 @@ /* - - description: This is the test_bench file for the chess_ai - - author: Yann Herklotz <ymherklotz@gmail.com> - date created: DD-MM-YYYY - + * + * description: This is the test_bench file for the chess_ai + * + * author: Yann Herklotz <ymherklotz@gmail.com> + * date created: DD-MM-YYYY + * */ #include "chess_ai.hpp" @@ -15,34 +15,31 @@ using namespace std; using namespace chess_ai; -int main(int argc, char** argv) { - (void)argc; - (void)argv; - - int test_id; - bool passed; +int main(int argc, char **argv) { + int test_id; + bool passed; - chess_tester test_bench; + chess_tester test_bench; - chess_board empty_board(clear); - chess_board initial_board(initial); + chess_board empty_board(clear); + chess_board initial_board(initial); - test_bench.chess_begin_test_suite(); + test_bench.chess_begin_test_suite(); - test_id = test_bench.chess_begin_test("PAWN"); - chess_piece piece(pawn, white, 1, 6); - empty_board.set_piece(piece); - empty_board.print_board(); - cout << empty_board.move_piece(1, 6, 1, 4) << endl; - piece.set(pawn, white, 1, 4); - if(empty_board.at(1, 4) == piece) - passed = true; - else - passed = false; - empty_board.print_board(); - test_bench.chess_end_test(test_id, passed); + test_id = test_bench.chess_begin_test("PAWN"); + chess_piece piece(pawn, white, 1, 6); + empty_board.set_piece(piece); + empty_board.print_board(); + cout << empty_board.move_piece(1, 6, 1, 4) << endl; + piece.set(pawn, white, 1, 4); + if(empty_board.at(1, 4) == piece) + passed = true; + else + passed = false; + empty_board.print_board(); + test_bench.chess_end_test(test_id, passed); - test_bench.chess_end_test_suite(); + test_bench.chess_end_test_suite(); - return 0; + return 0; } |