/// <summary> /// Ф:Проверяет стиллинговую ситуацию для игрока /// </summary> public static bool IsStealSituationForPlayer(this Game game, PlayerHistory playerHistory) { var playersCount = game.PlayerHistories.Count; if (playersCount < 3) { return(false); } if (!playerHistory.HandActions.PreflopHandActions().RealActions().Any()) { return(false); } if (!playerHistory.IsInStealPosition()) { return(false); } var allPreflopHandActions = game.AllPreflopHandActions().RealActions().ToList(); var positionAction = allPreflopHandActions.Where(ha => ha.PlayerName == playerHistory.PlayerName).OrderBy(ha => ha.Index).First(); if (!allPreflopHandActions.AllFoldedBeforeAction(positionAction)) { return(false); } return(true); }