public AI() { _history = new Stack<Byte[]>(); _engine = new Engine(); _startingMoves = new List<Move>(); _kingSquares = new Byte[] { 1, 3, 5, 7, 56, 58, 60, 62 }; _evaluated = 0; }
public MoveEngine(Byte[] board) { this.board = board; engine = new Engine(); try { whiteKing = Image.FromFile(@"images/whiteKing.png"); redKing = Image.FromFile(@"images/redKing.png"); } catch (System.Exception e) { MessageBox.Show("Failed to load King checker images", "Error"); } }
public static Player.PlayerColor GetCheckerColor(Engine.Piece checker) { PlayerColor result = PlayerColor.NONE; switch (checker) { case Engine.Piece.WhiteKing: case Engine.Piece.WhiteChecker: result = PlayerColor.WHITE; break; case Engine.Piece.RedKing: case Engine.Piece.RedChecker: result = PlayerColor.RED; break; } return result; }