notSurroundedByStars function

bool notSurroundedByStars(
  1. IFunctionlSurpalaces palace,
  2. List<StarName> stars
)

判断某一个宫位三方四正是否不含目标星耀,必须要全部都不在三方四正内含才会返回true

@param $ 三方四正的实例 @param stars 星耀名称数组 @returns true | false

Implementation

bool notSurroundedByStars(IFunctionlSurpalaces palace, List<StarName> stars) {
  final allStarsInPalace = _getAllStarsInSurroundedPalaces(palace);
  return _excludeAll(allStarsInPalace, stars);
}