mirror of
https://gitlab.com/manzerbredes/ochess.git
synced 2025-04-07 02:26:29 +02:00
Debug chessarbiter
This commit is contained in:
parent
04fe528060
commit
dec8f79dba
3 changed files with 5 additions and 5 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit b5f647e72a080a9ee7a8a13b0ff11d844aba9e18
|
Subproject commit 3ba7bd82d255c555aec3882f897be471fdb69a8d
|
|
@ -60,9 +60,9 @@ MainWindow::MainWindow()
|
||||||
NewGame(std::shared_ptr<Game>(new Game()));
|
NewGame(std::shared_ptr<Game>(new Game()));
|
||||||
|
|
||||||
// Temporary TO REMOVE JUST FOR TESTS:
|
// Temporary TO REMOVE JUST FOR TESTS:
|
||||||
//BaseTab *bt = new BaseTab((wxFrame *)notebook, "/home/loic/jean.pgn");
|
/*BaseTab *bt = new BaseTab((wxFrame *)notebook, "/home/loic/jean.pgn");
|
||||||
//this->AddPage(bt,bt);
|
this->AddPage(bt,bt);
|
||||||
/*
|
|
||||||
bt = new BaseTab((wxFrame *)notebook, "/home/loic/pgn/Milov.pgn");
|
bt = new BaseTab((wxFrame *)notebook, "/home/loic/pgn/Milov.pgn");
|
||||||
this->AddPage(bt,bt);*/
|
this->AddPage(bt,bt);*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -178,7 +178,7 @@ bool HalfMove::IsABlackMove() { return (IsBlack); }
|
||||||
|
|
||||||
void HalfMove::BuildAndVerify(HalfMove *m, std::string fen) {
|
void HalfMove::BuildAndVerify(HalfMove *m, std::string fen) {
|
||||||
arbiter.Setup(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) {
|
if (!work) {
|
||||||
wxLogDebug("Bug! %s", m->move);
|
wxLogDebug("Bug! %s", m->move);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue