public void create_dealers_hand_for(BlackJackTable black_jack_table)
 {
     if (dealers_hand == null)
     {
         _hands.Add(_hand_factory.create_dealers_hand_for(black_jack_table));
     }
 }
 public void place_bet_on_free_position(Chips chips_wagered, BlackJackTable black_jack_table)
 {
     if (players_active_hand == null)
     {
         _hands.Add(_hand_factory.create_players_hand_with(chips_wagered, black_jack_table, HandLetters.A.ToString()));
     }
 }
Exemplo n.º 3
0
        public Hand create_players_hand_with(Chips chips_wagered, BlackJackTable black_jack_table, string hand_letter)
        {
            var players_hand = new PlayersHand(chips_wagered, black_jack_table, hand_letter);

            players_hand.mark_as_active();

            return(players_hand);
        }
        public on_a_blackjacktable()
        {            
            card_shoe = MockRepository.GenerateStub<ICardShoe>();
            playing_positions = MockRepository.GenerateStub<IPlayingPositions>();
            table_status = MockRepository.GenerateStub<ITableStatus>();
            player = MockRepository.GenerateStub<IPlayer>();

            SUT = new BlackJackTable(player, card_shoe, playing_positions, table_status);
        }
Exemplo n.º 5
0
        public on_a_blackjacktable()
        {
            card_shoe         = MockRepository.GenerateStub <ICardShoe>();
            playing_positions = MockRepository.GenerateStub <IPlayingPositions>();
            table_status      = MockRepository.GenerateStub <ITableStatus>();
            player            = MockRepository.GenerateStub <IPlayer>();

            SUT = new BlackJackTable(player, card_shoe, playing_positions, table_status);
        }
 public void create_dealers_hand_for(BlackJackTable black_jack_table)
 {
     if (dealers_hand == null)
         _hands.Add(_hand_factory.create_dealers_hand_for(black_jack_table));
 }        
 public void place_bet_on_free_position(Chips chips_wagered, BlackJackTable black_jack_table)
 {
     if (players_active_hand == null)
         _hands.Add(_hand_factory.create_players_hand_with(chips_wagered, black_jack_table, HandLetters.A.ToString()));            
 }
Exemplo n.º 8
0
 public Hand create_dealers_hand_for(BlackJackTable black_jack_table)
 {
     return(new DealersHand(black_jack_table));
 }