notSurrounded method

  1. @override
bool notSurrounded(
  1. dynamic indexOfPalace,
  2. List<StarName> stars
)
override

判断某一个宫位三方四正是否不含目标星耀,必须要全部都不在三方四正内含才会返回true index 宫位索引 starName 宫位名称 stars 星耀名称数组

Implementation

@override
bool notSurrounded(dynamic indexOfPalace, List<StarName> stars) {
  // TODO: implement notSurrounded
  return surroundedPalaces(indexOfPalace).notHave(stars);
}