renamed function to match go convention
This commit is contained in:
parent
da26e1ca46
commit
674cda293f
4
game.go
4
game.go
@ -164,7 +164,7 @@ func (g *game) tick(payload *Boardstate) int {
|
|||||||
return players_remaining
|
return players_remaining
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g *game) send_update(payload *Boardstate) {
|
func (g *game) sendUpdate(payload *Boardstate) {
|
||||||
// Ensure that the robots are always sent in a consistent order
|
// Ensure that the robots are always sent in a consistent order
|
||||||
sort.Sort(RobotSorter{Robots: payload.OtherRobots})
|
sort.Sort(RobotSorter{Robots: payload.OtherRobots})
|
||||||
sort.Sort(AllRobotSorter{Robots: payload.AllBots})
|
sort.Sort(AllRobotSorter{Robots: payload.AllBots})
|
||||||
@ -313,7 +313,7 @@ func (g *game) run() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SEND THE UPDATE TO EACH PLAYER
|
// SEND THE UPDATE TO EACH PLAYER
|
||||||
g.send_update(payload)
|
g.sendUpdate(payload)
|
||||||
|
|
||||||
t1 = time.Now()
|
t1 = time.Now()
|
||||||
if *verbose {
|
if *verbose {
|
||||||
|
Loading…
Reference in New Issue
Block a user