nmrugg/kingdom

is_stalemate_by_rule function can't detect stalemate

Opened this issue · 0 comments

@nmrugg

Found a bug in your code. You always depends on is_stalemate_by_rule variable for stalemate. However, when stalemate_by_rule == null, !stalemate_by_rule == true. Then either side must win. It will never go into the "else" clause.

if (moves.checkers.length && !stalemate_by_rules) {