count each player's moves separately, not as pairs
This commit is contained in:
parent
31b9bc70b3
commit
041a8a3242
|
|
@ -82,7 +82,7 @@ function boardPut(board, where, side, piece){
|
|||
function countMoves(board) {
|
||||
var n = 0;
|
||||
while (board && board['prior']) {
|
||||
if (board['player'] === 'light' && board['prior']['player'] !== 'light') {
|
||||
if (board['prior']['player'] !== board['player']) {
|
||||
++n;
|
||||
}
|
||||
board = board['prior'];
|
||||
|
|
|
|||
Loading…
Reference in New Issue