Skip to content

Commit

Permalink
double passing in wallOrMove should no be draw
Browse files Browse the repository at this point in the history
  • Loading branch information
RainRat committed Jun 5, 2024
1 parent b994bca commit 23aa2d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/position.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2904,7 +2904,7 @@ bool Position::is_immediate_game_end(Value& result, int ply) const {
}

// Check for bikjang rule (Janggi), double passing, or board running full
if ( (st->pliesFromNull > 0 && ((st->bikjang && st->previous->bikjang) || (st->pass && st->previous->pass)))
if ( (st->pliesFromNull > 0 && ((st->bikjang && st->previous->bikjang) || ((st->pass && st->previous->pass)&&!var->wallOrMove)))
|| (var->adjudicateFullBoard && !(~pieces() & board_bb())))
{
result = var->materialCounting ? convert_mate_value(material_counting_result(), ply) : VALUE_DRAW;
Expand Down

0 comments on commit 23aa2d9

Please sign in to comment.