Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void TMainForm::PrepareGameTableWithBot(const int chips) {
- FirstBotCard -> Picture -> LoadFromFile("cards/back_of_card.png");
- SecondBotCard -> Picture -> LoadFromFile("cards/back_of_card.png");
- amountOfChips = chips;
- amountOfPlayers = 2;
- BotPreparingForm -> Close();
- randomize();
- for (int i = 1; i < amountOfPlayers + 1; i++) {
- GiveCardsToPlayer(i);
- }
- GenerateTableCards();
- Background -> Picture -> LoadFromFile("background_game.png");
- FirstHandCard -> Picture -> LoadFromFile("cards/" + IntToStr(playersCards[0][0].value) + "_of_" + playersCards[0][0].suit + ".png");
- SecondHandCard -> Picture -> LoadFromFile("cards/" + IntToStr(playersCards[0][1].value) + "_of_" + playersCards[0][1].suit + ".png");
- ShowBotCards();
- ShowHandCards();
- ShowButtons();
- HideCardsBtn -> Visible = false;
- ShowLabels();
- PlayerNameLabel -> Visible = false;
- PrepareChips();
- isFirstGame = false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement