public static TResult Select <TResult>(this TargetBorder targetBorder, Func <TResult> upper, Func <TResult> bottom) { if (targetBorder.Name == TargetBorderEnum.UpperName) { return(upper()); } return(bottom()); }
public AverageBlackStoneToTargetBorderDistance(IPlayersState playersState, IFieldsGraph actualGraph, int averageDistanceWeight) { _targetBorder = playersState.CurrentPlayer.GetTargetBorder(actualGraph); _originalDistance = _targetBorder.GetDistanceFrom(actualGraph.GetWhiteField()); _averageDistanceWeight = averageDistanceWeight; }
public WhiteStoneToBorderDistanceValue(TargetBorder winingBorder) { _winingBorder = winingBorder; }
public BlackStoneToTargetBorderCount(IPlayersState playersState, IFieldsGraph actualGraph, int goodBlackFieldsWeight) { _targetBorder = playersState.CurrentPlayer.GetTargetBorder(actualGraph); _originalDistance = _targetBorder.GetDistanceFrom(actualGraph.GetWhiteField()); _goodBlackFieldsWeight = goodBlackFieldsWeight; }