Advertisement
fatalryuu

Untitled

Dec 4th, 2022
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. void TMainForm::ConfigureCallWithPlayers() {
  2. if (playersChips[currPlayer] > bid) {
  3. playersChips[currPlayer] -= bid;
  4. bank += bid;
  5. if (bid == odds)
  6. bid = savedBid;
  7. } else {
  8. CallBtn -> Caption = ALL_IN_CAPTION;
  9. playersChips[currPlayer] = 0;
  10. bank += playersChips[currPlayer];
  11. isInAllIn = true;
  12. }
  13. BankLabel -> Caption = BANK_LABEL + IntToStr(bank);
  14. ChipsLabel -> Caption = CHIPS_LABEL + IntToStr(playersChips[currPlayer]);
  15. TurnOffButtons();
  16. HideCardsBtn -> Enabled = true;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement