IPVGO: Remove unneeded functions from boardState.ts (#1270)

This commit is contained in:
David Walker
2024-05-16 12:26:18 -07:00
committed by GitHub
parent b7962ad8ab
commit 38d99ff15e
7 changed files with 38 additions and 66 deletions
+1 -2
View File
@@ -4,7 +4,6 @@ import type { Board, PointState } from "../Types";
import { GoColor } from "@enums";
import { sleep } from "./goAI";
import { findEffectiveLibertiesOfNewMove } from "./boardAnalysis";
import { floor } from "../boardState/boardState";
export const threeByThreePatterns = [
// 3x3 piece patterns; X,O are color pieces; x,o are any state except the opposite color piece;
@@ -104,7 +103,7 @@ export async function findAnyMatchedPatterns(
}
await sleep(10);
}
return moves[floor(rng * moves.length)] || null;
return moves[Math.floor(rng * moves.length)] || null;
}
/**