Amity
Games — Simulated Hunt
“Count your casts—land the fin.” — Harbor Patrol
Challenge:
Return the number of guesses taken to find the shark’s hiding spot.
Operations • Search
Task:
Implement
hunt_shark(hidden=(2,2), guesses=[...])
.
Return the 1-based attempt count at which a guess equals
hidden
. If not found, return
0
.
Click
Run Unit Tests
. If all tests pass, you’ll get the flag.
def hunt_shark(hidden=(2,2), guesses=None): # Your code here return 0 # Test runner do not edit below run_selected_test()
Run Unit Tests
Output or flag will appear here...