private BotsPoints SetBotsPointsAsync(BotsPoints botsPoints, RankType rank) { botsPoints.Points += (int)rank; botsPoints.CardsInHand++; return(botsPoints); }
private (BotsStep botsStep, BotsPoints botsPoints) BotGetCard(List <Card> cards, BotsPoints botsPoints, int stepNumder, int numCard) { var card = cards.ElementAt(numCard); var botsStep = new BotsStep() { GameId = botsPoints.GameId, BotId = botsPoints.BotId, StepNumder = stepNumder, Rank = card.Rank, Suit = card.Suit, }; botsPoints = SetBotsPointsAsync(botsPoints, card.Rank); return(botsStep, botsPoints); }