|
@@ -131,7 +131,7 @@ func movePlayer(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
|
|
|
|
|
|
|
e := json.NewEncoder(w)
|
|
e := json.NewEncoder(w)
|
|
|
e.Encode(p.Pos)
|
|
e.Encode(p.Pos)
|
|
|
- log.Println("Player %v moved in direction %v", p.Id, direction)
|
|
|
|
|
|
|
+ log.Printf("Player %v moved in direction %v\n", p.Id, direction)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// Request params: x={x}&y={y}&rows={rows}&cols={cols}
|
|
// Request params: x={x}&y={y}&rows={rows}&cols={cols}
|