public Board(Moves moves, Field field) { this.field = field; this.moves = moves; openCV = new OpenCV(); autoIt = new Autoit("LDPlayer-1", Notify); }
public ChessBoard(Writer console, OpenCV openCV, Autoit autoIt) { this.console = console; this.openCV = openCV; this.autoIt = autoIt; field = new Field(66, 1, 142, 34, 54, 528); // field = new Field(75, 1, 70, 40, 60, 600); // размеры поля для тренировки overlay = new Overlay(field.Width, field.Width); }
public ChessBot(Writer console) { isWhiteNextMove = true; this.console = console; autoIt = new Autoit(console, "LDPlayer-1"); openCV = new OpenCV(); chessBoard = new ChessBoard(console, openCV, autoIt); movesHystory = new List <string>(); depth = 15; stockfish = new Stockfish.NET.Stockfish(@"stockfish.exe") { SkillLevel = 20 }; stockfishF = new Stockfish.NET.Stockfish(@"stockfish.exe") { SkillLevel = 17, Depth = 12 }; console.WriteLine("Loaded"); }