Implement a command queue on the world

Not currently executed
This commit is contained in:
Marc Di Luzio 2020-06-06 14:44:59 +01:00
parent e3ce87e964
commit 0a0a32cf58
6 changed files with 120 additions and 15 deletions

View file

@ -24,7 +24,7 @@ func TestCommand_Move(t *testing.T) {
duration := 1
// Try the move command
moveCommand := Command{Command: CommandMove, Bearing: bearing.String(), Duration: duration}
assert.NoError(t, world.Execute(a, moveCommand), "Failed to execute move command")
assert.NoError(t, world.Enqueue(a, moveCommand), "Failed to execute move command")
newpos, err := world.RoverPosition(a)
assert.NoError(t, err, "Failed to set position for rover")