Adjust auto mover selection.

This commit is contained in:
yukirij 2024-08-19 19:50:01 -07:00
parent 6df7951f28
commit 00a105dd4a

View File

@ -1009,7 +1009,7 @@ const INTERFACE = {
if(moves.length > 0) { if(moves.length > 0) {
moves = moves.sort((a, b) => { return b.score - a.score; }); moves = moves.sort((a, b) => { return b.score - a.score; });
let select = Math.floor(Math.random() * Math.min(moves.length, 3)); let select = Math.floor(Math.random() * Math.min(moves.length, 2));
INTERFACE.process(moves[select].play); INTERFACE.process(moves[select].play);
} }
}, },