|
@@ -2,6 +2,7 @@ package ludo
|
|
|
|
|
|
import (
|
|
|
"fmt"
|
|
|
+ "server/console"
|
|
|
"server/msg"
|
|
|
"strings"
|
|
|
|
|
@@ -67,7 +68,9 @@ func (room_info *RoomInfoWrapper) updateRoleStep(role_id string, step int32) {
|
|
|
// 是否结束游戏
|
|
|
func (room_info *RoomInfoWrapper) IsOverGame() bool {
|
|
|
colors := room_info.Colors
|
|
|
- if len(room_info.getNotKickColors()) == 1 { //说明就剩下一个人了
|
|
|
+ notKickLen := len(room_info.getNotKickColors())
|
|
|
+ console.Log("notKickLen:", notKickLen)
|
|
|
+ if notKickLen == 1 { //说明就剩下一个人了
|
|
|
return true
|
|
|
}
|
|
|
count := 0
|