diff --git a/Renegade/Board.h b/Renegade/Board.h index af5d91b..024b93c 100644 --- a/Renegade/Board.h +++ b/Renegade/Board.h @@ -7,7 +7,13 @@ #include #include "Move.h" #include "Utils.cpp" -using namespace std; + +using std::cout; +using std::endl; +using std::cin; +using std::string; +using std::vector; +using std::get; /* * This is the board representation of Renegade. @@ -31,8 +37,8 @@ class Board bool AreThereLegalMoves(int side); bool IsLegalMove(Move m, int side); void TryMove(Move move); - std::vector GenerateMoves(int side); - std::vector GenerateLegalMoves(int side); + vector GenerateMoves(int side); + vector GenerateLegalMoves(int side); unsigned __int64 CalculateAttackedSquares(int side); std::vector GenerateKnightMoves(int home); diff --git a/Renegade/Engine.cpp b/Renegade/Engine.cpp index ac079f8..4d05e24 100644 --- a/Renegade/Engine.cpp +++ b/Renegade/Engine.cpp @@ -228,7 +228,7 @@ int Engine::StaticEvaluation(Board board, int level) { // Start UCI protocol void Engine::Start() { - cout << "Renegade chess engine [Build: " << __DATE__ << " " << __TIME__ << "]" << endl; + cout << "Renegade chess engine " << Version << " [" << __DATE__ << " " << __TIME__ << "]" << endl; std::string cmd = ""; Board board = Board(starting_fen); while (getline(cin, cmd)) { @@ -353,7 +353,6 @@ void Engine::PrintInfo(Evaluation e) { void Engine::Play() { Board board = Board(starting_fen); - cout << "Renegade" << endl; cout << "c - Computer, h - Human" << endl; cout << "White player? "; char white; diff --git a/Renegade/Renegade.vcxproj b/Renegade/Renegade.vcxproj index e2cee23..7eb3b33 100644 --- a/Renegade/Renegade.vcxproj +++ b/Renegade/Renegade.vcxproj @@ -144,6 +144,7 @@ + diff --git a/Renegade/Renegade.vcxproj.filters b/Renegade/Renegade.vcxproj.filters index 1bfdc75..31ed77f 100644 --- a/Renegade/Renegade.vcxproj.filters +++ b/Renegade/Renegade.vcxproj.filters @@ -30,6 +30,9 @@ Source Files + + Source Files + diff --git a/Renegade/Utils.cpp b/Renegade/Utils.cpp index a534732..233f833 100644 --- a/Renegade/Utils.cpp +++ b/Renegade/Utils.cpp @@ -2,6 +2,8 @@ #include #include +const std::string Version = "0.2.0"; + // To do: add squares, files, and ranks namespace Side {