Refactor rover attributes to add a name
This commit is contained in:
parent
db38ad6091
commit
5e1f9b0d31
10 changed files with 43 additions and 72 deletions
|
@ -134,7 +134,7 @@ func InnerMain(command string) error {
|
|||
return fmt.Errorf("Server returned failure: %s", response.Error)
|
||||
|
||||
} else {
|
||||
fmt.Printf("Spawned at position %+v\n", response.Position)
|
||||
fmt.Printf("Spawned rover with attributes %+v\n", response.Attributes)
|
||||
}
|
||||
|
||||
case "move":
|
||||
|
@ -184,7 +184,7 @@ func InnerMain(command string) error {
|
|||
return fmt.Errorf("Server returned failure: %s", response.Error)
|
||||
|
||||
} else {
|
||||
fmt.Printf("position: %v\n", response.Position)
|
||||
fmt.Printf("attributes: %v\n", response.Attributes)
|
||||
}
|
||||
|
||||
default:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue