bjsim.curr_game.shoe.popCard() assert(bjsim.curr_game.felt_run_count == 2*bjsim.num_decks) assert(bjsim.curr_game.felt_true_count == 2) assert(bjsim.curr_game.hilo_run_count == 2*bjsim.num_decks) assert(bjsim.curr_game.hilo_true_count == 2) # # TEST CASE # Give all players blackjack and ensure no bankroll changes after ############################################################################ bjsim.curr_game.shoe.cards[0] = Card(1, 14) bjsim.curr_game.shoe.cards[1] = Card(1, 14) bjsim.curr_game.shoe.cards[2] = Card(1, 14) bjsim.curr_game.shoe.cards[3] = Card(1, 14) bjsim.curr_game.shoe.cards[4] = Card(1, 11) bjsim.curr_game.shoe.cards[5] = Card(1, 11) bjsim.curr_game.shoe.cards[6] = Card(1, 11) bjsim.curr_game.shoe.cards[7] = Card(1, 11) bjsim.simulateHand() assert(bjsim.player_list[0].bet == 1) assert(bjsim.player_list[1].bet == 3) assert(bjsim.player_list[2].bet == 3) assert(bjsim.player_list[0].chips == 0) assert(bjsim.player_list[1].chips == 0) assert(bjsim.player_list[2].chips == 0) print "SUCCESS!"
bjsim.curr_game.shoe.cards[3] = Card(1, 6) bjsim.curr_game.shoe.cards[4] = Card(1, 7) bjsim.curr_game.shoe.cards[5] = Card(1, 7) bjsim.curr_game.shoe.cards[6] = Card(1, 7) bjsim.curr_game.shoe.cards[7] = Card(1, 10) bjsim.curr_game.shoe.cards[8] = Card(1, 7) bjsim.curr_game.shoe.cards[9] = Card(1, 4) bjsim.curr_game.shoe.cards[10] = Card(1, 10) bjsim.curr_game.shoe.cards[11] = Card(1, 4) bjsim.curr_game.shoe.cards[12] = Card(1, 10) bjsim.curr_game.shoe.cards[13] = Card(1, 4) bjsim.curr_game.shoe.cards[14] = Card(1, 10) bjsim.curr_game.shoe.cards[15] = Card(1, 7) bjsim.curr_game.shoe.cards[16] = Card(1, 4) bjsim.curr_game.shoe.cards[17] = Card(1, 10) bjsim.curr_game.shoe.cards[18] = Card(1, 4) bjsim.curr_game.shoe.cards[19] = Card(1, 10) bjsim.curr_game.shoe.cards[20] = Card(1, 4) bjsim.curr_game.shoe.cards[21] = Card(1, 10) bjsim.curr_game.shoe.cards[22] = Card(1, 7) bjsim.curr_game.shoe.cards[23] = Card(1, 4) bjsim.curr_game.shoe.cards[24] = Card(1, 10) bjsim.curr_game.shoe.cards[25] = Card(1, 4) bjsim.curr_game.shoe.cards[26] = Card(1, 10) bjsim.curr_game.shoe.cards[27] = Card(1, 4) bjsim.curr_game.shoe.cards[28] = Card(1, 10) bjsim.curr_game.shoe.cards[29] = Card(1, 10) bjsim.simulateHand() print "Done."