Adjust auto mover scoring.
This commit is contained in:
parent
5d1f0da888
commit
6df7951f28
@ -973,7 +973,7 @@ const INTERFACE = {
|
|||||||
let target_id = GAME_DATA.board.tiles[move.tile].piece;
|
let target_id = GAME_DATA.board.tiles[move.tile].piece;
|
||||||
if(target_id !== null) {
|
if(target_id !== null) {
|
||||||
let target = GAME_DATA.board.pieces[target_id];
|
let target = GAME_DATA.board.pieces[target_id];
|
||||||
if(target.player == opponent) { score += (1 + target.piece) * (1 + target.promoted); }
|
if(target.player == opponent) { score += (2 + target.piece) * (1 + target.promoted); }
|
||||||
else { score -= 1; }
|
else { score -= 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user