Amity
Waters — Shark Movement Sim
“Keep it in bounds—no beaching allowed.” — Harbor Patrol
Challenge:
Simulate a shark moving randomly in a 10×10 grid.
Research Station • Movement Model
Task:
Implement
simulate_moves(start=(0,0), moves=20)
returning the final
(x, y)
.
Keep the shark within bounds
[0,9]
for both axes.
Click
Run Unit Tests
. If all tests pass, you'll get the flag.
def simulate_moves(start=(0,0), moves=20): # Your code here return start # Test runner do not edit below run_selected_test()
Run Unit Tests
Output or flag will appear here...