public void ManagerSendPlayerData(uint playerId, PokerCards data) { if (playerId < Config.MAX_PLAYERS) { MetaData.cards[playerId] = data; } }
private bool CompareCleanSweepHand(PokerResult result1, PokerResult result2, PokerCards cards1, PokerCards cards2) { if (result1.cleanSweepResult.type >= PokerType.ThreeStraight || result2.cleanSweepResult.type >= PokerType.ThreeStraight) { if (result1.cleanSweepResult.type == result2.cleanSweepResult.type) { Checker.GetCleanSweepHandType(cards1.cardTotal, out CardCollection cleanSweep1); Checker.GetCleanSweepHandType(cards2.cardTotal, out CardCollection cleanSweep2); var cmpResult = Checker.CmpCards(cleanSweep1, cleanSweep2, _compareSuitType); if (cmpResult != Winner.NoWin) { if (cmpResult == Winner.Player1) { result2.cleanSweepResult.rank--; } else { result1.cleanSweepResult.rank--; } } } else if (result1.cleanSweepResult.type < result2.cleanSweepResult.type) { result1.cleanSweepResult.rank--; } else { result2.cleanSweepResult.rank--; } return(true); } return(false); }
private void CompareNormalHand(PokerResult result1, PokerResult result2, PokerCards cards1, PokerCards cards2) { // FIXME: chưa làm }