From 5c549ad8c380d543e02867cdc37c104109c1e90f Mon Sep 17 00:00:00 2001 From: Marc Di Luzio Date: Sat, 6 Jun 2020 18:45:23 +0100 Subject: [PATCH] Add a TODO to the MoveRover command about blocking other rovers --- pkg/game/world.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/game/world.go b/pkg/game/world.go index a88282c..5a71db0 100644 --- a/pkg/game/world.go +++ b/pkg/game/world.go @@ -115,6 +115,8 @@ func (w *World) MoveRover(id uuid.UUID, bearing Direction) (RoverAttributes, err // Calculate the full movement based on the bearing move := bearing.Vector().Multiplied(distance) + // TODO: Verify there's nothing blocking this movement + // Increment the position by the movement i.Attributes.Pos.Add(move)