private bool DetectingAnxiety( LusherChoice firstChoiceElement, LusherChoice secondChoiceElement, int index) { return(index >= 5 && (_basicColors.Contains(firstChoiceElement.Color) || _basicColors.Contains(secondChoiceElement.Color))); }
private GroupType GetGroupType( LusherChoice firstChoiceElement, LusherChoice secondChoiceElement, LusherChoice previousFirstChoiceElement, LusherChoice previousSecondChoiceElement, GroupType currentGroupType, int index) { if (currentGroupType == GroupType.Positive) { if (firstChoiceElement.Color == secondChoiceElement.Color) { return(GroupType.Positive); } return(GroupType.Spontaneous); } else if (currentGroupType == GroupType.Spontaneous) { if (secondChoiceElement.Color == previousFirstChoiceElement.Color && firstChoiceElement.Color == previousSecondChoiceElement.Color) { return(GroupType.Spontaneous); } //previousSecondChoiceElement.Group = GroupType.Neutral; // overwrite the previous value return(GroupType.Neutral); } else if (currentGroupType == GroupType.Neutral) { if (secondChoiceElement.Color == previousFirstChoiceElement.Color && firstChoiceElement.Color == previousSecondChoiceElement.Color && index == 7) { previousSecondChoiceElement.Group = GroupType.Negative; // overwrite the previous value return(GroupType.Negative); } if (index == 7) { return(GroupType.Negative); } } if (index == 8) { return(GroupType.Negative); } return(currentGroupType); }
private void SetIntensity(LusherChoice choice, int index) { if (index > 4 && _basicColors.Contains(choice.Color)) { choice.Intensity = index - 4; } else if (index < 3 && _compensationColors.Contains(choice.Color)) { choice.Intensity = Math.Abs(3 - index); } else { choice.Intensity = 0; } }