Debug chessarbiter

This commit is contained in:
Loic Guegan 2022-12-26 22:05:42 +01:00
parent 04fe528060
commit dec8f79dba
3 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit b5f647e72a080a9ee7a8a13b0ff11d844aba9e18
Subproject commit 3ba7bd82d255c555aec3882f897be471fdb69a8d

View file

@ -60,9 +60,9 @@ MainWindow::MainWindow()
NewGame(std::shared_ptr<Game>(new Game()));
// Temporary TO REMOVE JUST FOR TESTS:
//BaseTab *bt = new BaseTab((wxFrame *)notebook, "/home/loic/jean.pgn");
//this->AddPage(bt,bt);
/*
/*BaseTab *bt = new BaseTab((wxFrame *)notebook, "/home/loic/jean.pgn");
this->AddPage(bt,bt);
bt = new BaseTab((wxFrame *)notebook, "/home/loic/pgn/Milov.pgn");
this->AddPage(bt,bt);*/
}

View file

@ -178,7 +178,7 @@ bool HalfMove::IsABlackMove() { return (IsBlack); }
void HalfMove::BuildAndVerify(HalfMove *m, std::string fen) {
arbiter.Setup(fen);
bool work = arbiter.Play(arbiter.ParseSAN(m->move));
bool work = arbiter.Play(arbiter.ParseSAN(m->move),arbiter.ParseSANPromotion(m->move));
if (!work) {
wxLogDebug("Bug! %s", m->move);
}