/// <summary> /// Checks if the provided <see cref="Coordinates"/> is the exit or not /// </summary> /// <param name="exit">The <see cref="Coordinates"/> used to check if the Box is the exit</param> /// <returns>true if provided <see cref="Coordinates"/> is the exit else false</returns> public bool IsExit(Coordinates exit) { return(Box[exit.CoordinateX, exit.CoordinateY].Exit); }
/// <summary> /// Checks if the provided <see cref="Coordinates"/> are a mine or not /// </summary> /// <param name="mine">The <see cref="Coordinates"/> used to check if the mine is active</param> /// <returns>true if provided <see cref="Coordinates"/> are a mine else false</returns> public bool IsMine(Coordinates mine) { return(Box[mine.CoordinateX, mine.CoordinateY].Mine); }