checkstraight.cpp

来自「A suite of casino games」· C++ 代码 · 共 47 行

CPP
47
字号
#include "poker.h"void CPoker::checkStraight(){//detecting straight pattern    if(computerValueCount == 62 || computerValueCount == 124    || computerValueCount == 248 || computerValueCount == 496    || computerValueCount == 992 || computerValueCount == 1984    || computerValueCount == 3968 || computerValueCount == 7972    || computerValueCount == 15872)    {        isComputerRoyalFlush = false;	isComputerStraightFlush = false;	isComputerFourOfAKind = false;	isComputerFullHouse = false;	isComputerFlush = false;	isComputerStraight = true;	isComputerThreeOfAKind = false;	isComputerTwoPair = false;	isComputerOnePair = false;	isComputerNoHand = false;    }    if(isHumanRoyalFlush == false && isHumanStraightFlush == false    && isHumanFourOfAKind == false && isHumanFullHouse == false    && isHumanFlush == false)    {	if(humanValueCount == 62 || humanValueCount == 124	|| humanValueCount == 248 || humanValueCount == 496	|| humanValueCount == 992 || humanValueCount == 1984	|| humanValueCount == 3968 || humanValueCount == 7972	|| humanValueCount == 15872)	{		isHumanRoyalFlush = false;		isHumanStraightFlush = false;		isHumanFourOfAKind = false;		isHumanFullHouse = false;		isHumanFlush = false;		isHumanStraight = true;		isHumanThreeOfAKind = false;		isHumanTwoPair = false;		isHumanOnePair = false;		isHumanNoHand = false;        }    }}

⌨️ 快捷键说明

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