We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3ccf15 commit 3e7908fCopy full SHA for 3e7908f
game/match/match.go
@@ -97,6 +97,7 @@ func (m *MatchPool) match() {
97
func (m *MatchPool) matchUser(key, value interface{}) {
98
//找出同一分数段里,等待时间最长的玩家
99
rating, err := strconv.Atoi(key.(string))
100
+ fmt.Println("当前分数",rating)
101
if err != nil {
102
return
103
}
@@ -123,10 +124,9 @@ func (m *MatchPool) matchUser(key, value interface{}) {
123
124
125
if len(MatchUser) >= m.num { //人员已经够了,不再判断
126
//移除已经匹配成功的数据
-
127
continue
128
129
- //再上下每次加1分取 如果加到50都没成功者失败
+ //TODO 再上下每次加1分取 如果加到50都没成功者失败
130
131
132
0 commit comments