public Move_new GetMove() { _board = Board_new.Instance; bestMove = _CreateMove(_board.GetTileFromBoard(new Vector2(0, 0)), _board.GetTileFromBoard(new Vector2(0, 0))); AB(maxDepth, -100000000, 1000000000, true); return(bestMove); }
public MoveFactory(Board_new board) { _board = board; pieceToFunction.Add(Piece_new.pieceType.PAWN, _GetPawnMoves); pieceToFunction.Add(Piece_new.pieceType.ROOK, _GetRookMoves); pieceToFunction.Add(Piece_new.pieceType.KNIGHT, _GetKnightMoves); pieceToFunction.Add(Piece_new.pieceType.BISHOP, _GetBishopMoves); pieceToFunction.Add(Piece_new.pieceType.QUEEN, _GetQueenMoves); pieceToFunction.Add(Piece_new.pieceType.KING, _GetKingMoves); }
void Start() { _board = Board_new.Instance; _board.SetupBoard(); }