diff --git a/src/position.cpp b/src/position.cpp index 7c2335bfb..e2b334737 100644 --- a/src/position.cpp +++ b/src/position.cpp @@ -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;