⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clearhands.cpp

📁 A suite of casino games
💻 CPP
字号:
#include "blackjack.h"#include "poker.h"//maxsize = 12void CBlackjack::clearHands(){    for(int i = 0; i < 12; ++i)    {        playerHand[i] = "   ";        computerHand[i] = "   ";    }}//maxsize = 5void CPoker::clearHands(){    for(int i = 0; i < 5; ++i)    {        playerHand[i] = "   ";        computerHand[i] = "   ";    }    isComputerRoyalFlush = isComputerStraight = false;    isComputerFourOfAKind = isComputerFullHouse = false;    isComputerFlush = isComputerStraight = isComputerThreeOfAKind = false;    isComputerTwoPair = isComputerOnePair = false;    isComputerNoHand = true;    isHumanRoyalFlush = isHumanStraight = false;    isHumanFourOfAKind = isHumanFullHouse = false;    isHumanFlush = isHumanStraight = isHumanThreeOfAKind = false;    isHumanTwoPair = isHumanOnePair = false;    isHumanNoHand = true;    heartCounter = spadeCounter = clubCounter = diamondCounter = 0;    aceCounter = kingCounter = queenCounter = jackCounter = 0;    tenCounter = nineCounter = eightCounter = sevenCounter = 0;    sixCounter = fiveCounter = fourCounter = threeCounter = twoCounter = 0;    heartHumanCounter = spadeHumanCounter = clubHumanCounter = diamondHumanCounter = 0;    aceHumanCounter = kingHumanCounter = queenHumanCounter = jackHumanCounter = 0;    tenHumanCounter = nineHumanCounter = eightHumanCounter = sevenHumanCounter = 0;    sixHumanCounter = fiveHumanCounter = fourHumanCounter = threeHumanCounter = twoHumanCounter = 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -