Exactly one of your dig spots should now give you a treasure chest. Save and run over each dig spot to make sure that it’s working correctly. When you finish the first test, try a different array index for digSpots and check that the treasure appears in a different place.
Testing: Exactly One Spot Has Treasure
You don’t have access to this lesson
Please register or sign in to access the course content.