Amity
Lab — Movement Predictor
“North, south, east, west—guess right, live another test.” — Harbor Analytics
Challenge:
Predict next shark position from last movement direction.
Heuristics • Directional Model
Task:
Implement
predict_location(last_position, movement)
handling
north
,
south
,
east
,
west
.
Return the next
(x, y)
position.
Click
Run Unit Tests
. If all tests pass, you'll get the flag.
def predict_location(last_position, movement): # Your code here return last_position # Test runner do not edit below run_selected_test()
Run Unit Tests
Output or flag will appear here...