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
1 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ func (g *game) tick(payload *Boardstate) int {
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
sort.Sort(RobotSorter{Robots: payload.OtherRobots})
sort.Sort(AllRobotSorter{Robots: payload.AllBots})
@ -313,7 +313,7 @@ func (g *game) run() {
}
// SEND THE UPDATE TO EACH PLAYER
g.send_update(payload)
g.sendUpdate(payload)
t1 = time.Now()
if *verbose {