Treasure Hunt Competition Code

My class has been working through the Treasure Hunt STEM Lab, and we have made it to the final Treasure Hunt competition. We are currently stumped on how to code the robot to know where to drop the randomly-placed red cube and how to code the robot so it will know where to go to check the next cube. Any advice or code snippets would be appreciated!

Hi @Jonathan_Haynes! Absolutely! I’ll make you a solution and then ping you here once it’s ready :slight_smile:

Hi @Jonathan_Haynes! Here is an example solution and a video of it in action, please let me know if this helps! :slight_smile:

Treasure Hunt Competition Solution.iqblocks (14.6 KB)

@Lauren_Harter this is super helpful! Thank you for taking the time to create this code and video.

1 Like

Absolutely! Please let me know if you need anything else :slight_smile: