Fix world spawning and radar

Also expand test coverage a little to ensure it's correct
This commit is contained in:
Marc Di Luzio 2020-06-08 23:02:09 +01:00
parent fba75960f8
commit 43588c0e4b
8 changed files with 130 additions and 45 deletions

View file

@ -7,7 +7,7 @@ import (
)
func TestCommand_Move(t *testing.T) {
world := NewWorld()
world := NewWorld(2, 4)
a, err := world.SpawnRover()
assert.NoError(t, err)
pos := Vector{