renamed function to match go convention

This commit is contained in:
Stephen McQuay 2013-11-09 22:05:37 -08:00
parent da26e1ca46
commit 674cda293f

View File

@ -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 {