aboutsummaryrefslogtreecommitdiffstats
path: root/src/test_bench.cpp
diff options
context:
space:
mode:
authorzedarider <ymherklotz@gmail.com>2017-01-13 23:19:00 +0000
committerzedarider <ymherklotz@gmail.com>2017-01-13 23:19:00 +0000
commit8320f7ec281891501a9b3092e20d990e7fd14700 (patch)
treef2ed38f470e74c491107743eac078f23e2e3aa9e /src/test_bench.cpp
parenteda873106d7f91214a4e4a32ee6b16889b248216 (diff)
downloadChessAI-8320f7ec281891501a9b3092e20d990e7fd14700.tar.gz
ChessAI-8320f7ec281891501a9b3092e20d990e7fd14700.zip
made it more object oriented but removed the board implementation
Diffstat (limited to 'src/test_bench.cpp')
-rw-r--r--src/test_bench.cpp45
1 files changed, 10 insertions, 35 deletions
diff --git a/src/test_bench.cpp b/src/test_bench.cpp
index 68c93fb..861f51b 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,9 @@
using namespace std;
using namespace chess_ai;
-int main(int argc, char** argv) {
- (void)argc;
- (void)argv;
-
- int test_id;
- bool passed;
-
- chess_tester test_bench;
-
- chess_board empty_board(clear);
- chess_board initial_board(initial);
-
- 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_bench.chess_end_test_suite();
+int main(int argc, char **argv) {
+ (void)argc;
+ (void)argv;
- return 0;
+ return 0;
}