Guest User

Untitled

a guest
Feb 23rd, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. int main(){
  2. BlackjackGame game(8, 0.25, 1);
  3. Player p1(10, 1);
  4. p1.set_strategy(hard, soft, split);
  5. Player p2(10, 5);
  6. p2.set_strategy(hard, soft, split);
  7. /*
  8. *Modify any stragety as you want to see the expected return
  9. *
  10. * hard[12][3] = STAND;
  11. * soft[13][4] = D_H;
  12. * split[8][10] = HIT;
  13. * split[8][1] = HIT;
  14. */
  15. Player p3(10, 0);
  16. p3.set_strategy(hard, soft, split);
  17.  
  18. game.add_player(p1);
  19. game.add_player(p2);
  20. game.add_player(p3);
  21. for(int i = 0; i < NUM_OF_ROUNDS; i++){
  22. game.play_round();
  23. game.players[0].modify_bet_by_count(game.doc.get_running_count());
  24. }
  25.  
  26. cout << "1:" << game.players[0].get_money() << endl;
  27. cout << "2:" << game.players[1].get_money() << endl;
  28. cout << "3:" << game.players[2].get_money() << endl;
  29. cout << "1:" << game.players[0].get_sidebet_money() << endl;
  30. cout << "2:" << game.players[1].get_sidebet_money() << endl;
  31. cout << "3:" << game.players[2].get_sidebet_money() << endl;
  32.  
  33. return 0;
Add Comment
Please, Sign In to add comment