Prevent auto move under checkmate.
This commit is contained in:
parent
804074c0c5
commit
9de322afd3
@ -952,7 +952,7 @@ const INTERFACE = {
|
||||
},
|
||||
|
||||
auto_play() {
|
||||
if(INTERFACE_DATA.auto_mode !== (GAME_DATA.turn & 1)) { return; }
|
||||
if(INTERFACE_DATA.auto_mode !== (GAME_DATA.turn & 1) && !GAME_DATA.state.checkmate) { return; }
|
||||
|
||||
function state_score(state, player) {
|
||||
let score = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user