- // Search best (half) move for opponent turn (TODO: a bit too slow)
-// const getBestMoveEval = () => {
-// let score = this.getCurrentScore();
-// if (score != "*") return maxeval * (score == "1-0" ? 1 : -1);
-// let moves = this.getAllValidMoves();
-// let res = (oppCol == "w" ? -maxeval : maxeval);
-// for (let m of moves) {
-// this.play(m);
-// score = this.getCurrentScore();
-// // Now turn is oppCol,2 if m allow a swap and movesCount >= 2
-// // Otherwise it's color,1. In both cases the next test makes sense
-// if (score != "*") {
-// // Game over
-// this.undo(m);
-// return maxeval * (score == "1-0" ? 1 : -1);
-// }
-// const evalPos = this.evalPosition();
-// res = oppCol == "w" ? Math.max(res, evalPos) : Math.min(res, evalPos);
-// this.undo(m);
-// }
-// return res;
-// };
+ // NOTE: searching best (half) move for opponent turn is a bit too slow.
+ // => Only 2 half moves depth here.