随机次数修改
This commit is contained in:
parent
1e426d20a1
commit
0d2c090dc8
|
@ -563,10 +563,7 @@ func (this *TienLenSceneData) RandomCards() {
|
|||
for i := 0; i < rule.POKER_CNT; i++ {
|
||||
allCards = append(allCards, int32(i))
|
||||
}
|
||||
for i := 0; i < 5; i++ {
|
||||
shuffleInts(allCards)
|
||||
}
|
||||
fmt.Println("打乱后的切片:", allCards)
|
||||
cardss := map[int][]int32{}
|
||||
for i, card := range allCards {
|
||||
if card != rule.InvalideCard {
|
||||
|
|
Loading…
Reference in New Issue