FH-Hof Reversi: Erweiterungen für den AutoClient Richard Göbel
FH-Hof Erweiterung der internen Darstellung class ReversiBoard {... public static int [][] weight = { }; public ReversiBoard(ReversiBoard b) { } public int assess () { }... }
FH-Hof Bewertungsfunktion public static int [][] weight = { { 90, -9, 5, 5, 5, 5, -9, 90 }, { -9,-18,-2,-2,-2,-2,-18, -9 }, { 5, -2, 1, 0, 0, 1, -2, 5 }, { 5, -2, 0, 0, 0, 0, -2, 5 }, { 5, -2, 1, 0, 0, 1, -2, 5 }, { -9,-18,-2,-2,-2,-2,-18, -9 }, { 90, -9, 5, 5, 5, 5, -9, 90 }, };
FH-Hof Min-Max-Strategie class ReversiBoard { public int searchMax(int depth, BoardPos bestMove) {... } public int searchMin(int depth, BoardPos bestMove) {... } public int bestMove(byte col, int depth, BoardPos bestMove) {... }