aboutsummaryrefslogtreecommitdiffstats
path: root/src/test_bench.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/test_bench.cpp')
-rw-r--r--src/test_bench.cpp44
1 files changed, 17 insertions, 27 deletions
diff --git a/src/test_bench.cpp b/src/test_bench.cpp
index 8c79568..b1fe4ba 100644
--- a/src/test_bench.cpp
+++ b/src/test_bench.cpp
@@ -1,45 +1,35 @@
/*
*
- * description: This is the test_bench file for the chess_ai
+ * author: Yann Herklotz
+ * username: ymherklotz
+ * email: ymherklotz@gmail.com
+ * date created: 13/01/17
*
- * author: Yann Herklotz <ymherklotz@gmail.com>
- * date created: DD-MM-YYYY
+ * -----------------------------------------------------------------------------
+ *
+ * Main file that tests the chess ai
*
*/
-#include "chess_ai.hpp"
#include "chess_tester.hpp"
+#include "chess_piece.hpp"
+#include "chess_board.hpp"
+#include "board_state_parser.hpp"
#include <iostream>
using namespace std;
-using namespace chess_ai;
+using namespace ymhChessAI;
int main(int argc, char **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();
+ cout << "Program name: " << argv[0] << endl;
+ cout << "Arguments: " << argc - 1 << endl;
- 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);
+ ChessBoard cb;
+ cb.populateBoard();
+ cb.printBoard();
- test_bench.chess_end_test_suite();
+ cout << endl << "====== Executed Successfully ======" << endl;
return 0;
}