#include "position.h"
#include "san.h"
#include "search.h"
-#include "uci.h"
#include "ucioption.h"
using namespace std;
cout << "uciok" << endl;
}
else if (token == "ucinewgame")
- {
- Options["New Game"].set_value("true");
pos.from_fen(StartPositionFEN);
- }
else if (token == "isready")
cout << "readyok" << endl;
else if (token == "position")
StateInfo st;
while (uip >> token)
{
- move = move_from_string(pos, token);
+ move = move_from_uci(pos, token);
pos.do_move(move, st);
if (pos.rule_50_counter() == 0)
pos.reset_game_ply();
{
int numOfMoves = 0;
while (uip >> token)
- searchMoves[numOfMoves++] = move_from_string(pos, token);
+ searchMoves[numOfMoves++] = move_from_uci(pos, token);
searchMoves[numOfMoves] = MOVE_NONE;
}