Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 667 Bytes

Steps.md

File metadata and controls

15 lines (13 loc) · 667 Bytes

Each Turn:

Check to see if Item is there still: Check whether x difference or y difference is greater For whichever is greater, check to see which direction get closer(if difference is positive or negative) If distance is same just pick vertical or horizontal(can be hard coded) Check to see if move is possible: See if there is a box in the way If not possible, check which direction gets the bot closer in the other dimension Check to see if move is possible: See if there is a box in the way If neither move that should get it closer to the target are possible - here im not sure Update Coords

After movement check to see if coords line up with user or item