Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TMainForm::ConfigureCallWithPlayers() {
- if (playersChips[currPlayer] > bid) {
- playersChips[currPlayer] -= bid;
- bank += bid;
- if (bid == odds)
- bid = savedBid;
- } else {
- CallBtn -> Caption = ALL_IN_CAPTION;
- playersChips[currPlayer] = 0;
- bank += playersChips[currPlayer];
- isInAllIn = true;
- }
- BankLabel -> Caption = BANK_LABEL + IntToStr(bank);
- ChipsLabel -> Caption = CHIPS_LABEL + IntToStr(playersChips[currPlayer]);
- TurnOffButtons();
- HideCardsBtn -> Enabled = true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement