Reinstate BearingFromString function
This commit is contained in:
parent
db8ed0302d
commit
57f668ae54
2 changed files with 21 additions and 5 deletions
|
@ -427,7 +427,7 @@ func (w *World) Enqueue(rover string, commands ...Command) error {
|
|||
switch c.Command {
|
||||
case roveapi.CommandType_move:
|
||||
if c.Bearing == roveapi.Bearing_BearingUnknown {
|
||||
return fmt.Errorf("bearing must be cardinal")
|
||||
return fmt.Errorf("bearing must be valid")
|
||||
}
|
||||
case roveapi.CommandType_broadcast:
|
||||
if len(c.Message) > 3 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue