diff --git a/modules/entertainment/room.go b/modules/entertainment/room.go index b187580a8..b51dcd623 100644 --- a/modules/entertainment/room.go +++ b/modules/entertainment/room.go @@ -139,13 +139,13 @@ func (this *Room) AiOperator() { ChangeType: 1, }) } - // for _, v := range szMap { // - // curScore += v.CurSocre - // this.player2.Score += v.CurSocre - // v.CurSocre = this.player2.Score - // this.player2.Energy += v.CurEnergy - // v.CurEnergy = this.player2.Energy - // } + for _, v := range szMap { // + curScore += v.CurSocre + this.player2.Score += v.CurSocre + v.CurSocre = this.player2.Score + this.player2.Energy += v.CurEnergy + v.CurEnergy = this.player2.Energy + } // 广播消息 if err := this.module.SendMsgSyncToSession(string(this.module.GetType()), "operatorrst", &pb.EntertainOperatorRstPush{ Mpadata: szMap, @@ -381,18 +381,18 @@ func (this *Room) ReceiveMessage(session comm.IUserSession, stype string, msg pr this.round++ } - for _, v := range szMap { // - fmt.Printf("================\n") - var v1 int - for index := Width - 1; index >= 0; index-- { - for j := 0; j < Height; j++ { - v1 = index + j*7 - fmt.Printf("%d ", v.Data[v1].Cid) + // for _, v := range szMap { // + // fmt.Printf("================\n") + // var v1 int + // for index := Width - 1; index >= 0; index-- { + // for j := 0; j < Height; j++ { + // v1 = index + j*7 + // fmt.Printf("%d ", v.Data[v1].Cid) - } - fmt.Printf("\n") - } - } + // } + // fmt.Printf("\n") + // } + // } // 广播消息 if err := this.module.SendMsgSyncToSession(string(this.module.GetType()), "operatorrst", &pb.EntertainOperatorRstPush{ Mpadata: szMap,