public DealersHandBuilder add_dealers_hand() { var dealers_hand = new HandTableRow(); dealers_hand.id = Guid.NewGuid(); dealers_hand.discriminator = "Dealer"; dealers_hand.card_in_hand_rows = new List <CardInHandRow>(); dealers_hand.blackjacktable = _blackjacktablerow; _blackjacktablerow.hand_rows.Add(dealers_hand); return(new DealersHandBuilder(dealers_hand, this)); }
public HandBuilder add_hand_with_bet_of(decimal bet_amount) { var handTableRow = new HandTableRow(); handTableRow.id = Guid.NewGuid(); handTableRow.bet = bet_amount; handTableRow.hand_letter = "A"; handTableRow.blackjacktable = _blackjacktablerow; handTableRow.discriminator = "Player"; handTableRow.card_in_hand_rows = new List <CardInHandRow>(); _blackjacktablerow.hand_rows.Add(handTableRow); return(new HandBuilder(handTableRow, this)); }
public DealersHandBuilder(HandTableRow hand_table_row, GameBuilder game_builder) { _hand_table_row = hand_table_row; _game_builder = game_builder; }