mirror of
https://gitlab.com/manzerbredes/chessarbiter.git
synced 2025-04-19 03:59:42 +00:00
Enable to retreive SAN move
This commit is contained in:
parent
94c2565647
commit
0584edb107
5 changed files with 64 additions and 2 deletions
|
@ -416,3 +416,15 @@ TEST_CASE("Serialize", "[board/Serialize]") {
|
|||
"P ");
|
||||
}
|
||||
|
||||
TEST_CASE("IsPieceMoveUnique", "[board/IsPieceMoveUnique]") {
|
||||
Board b;
|
||||
b.AddPiece('N', "a1");
|
||||
b.AddPiece('n', "c1");
|
||||
|
||||
CHECK(b.IsPieceMoveUnique('n', "b3"));
|
||||
CHECK(b.IsPieceMoveUnique('N', "b3"));
|
||||
|
||||
b.AddPiece('N', "d2");
|
||||
CHECK(b.IsPieceMoveUnique('n', "b3"));
|
||||
CHECK_FALSE(b.IsPieceMoveUnique('N', "b3"));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue