diff --git a/freedom/utils/CardPositionNn.php b/freedom/utils/CardPositionNn.php index 05b9b6a..7095626 100644 --- a/freedom/utils/CardPositionNn.php +++ b/freedom/utils/CardPositionNn.php @@ -489,15 +489,7 @@ class CardPositionNn } } $word = ''; - if($king == 5){ - $cow = 11; - $word = '五公'; - $result['word'] = $word; - $result['cow'] = $cow; - $result['max'] = $max; - return $result; - } - //判断四条(炸弹):4张相同点数 + //判断四条(炸弹):4张相同点数,四条 > 五公 $cardNums = []; for($i=0;$i<5;$i++){ $cardNums[] = $card[$i]; @@ -511,6 +503,14 @@ class CardPositionNn $result['max'] = $max; return $result; } + if($king == 5){ + $cow = 11; + $word = '五公'; + $result['word'] = $word; + $result['cow'] = $cow; + $result['max'] = $max; + return $result; + } for($i=0;$i<4;$i++){//对5张牌从大到小排序。 for($j=$i+1;$j<5;$j++){ if($card[$i] < $card[$j]){