I had a difficult time understanding these directions and finally had to search the forum for an explanation. I would build my first trap and get blown up by it. I identified which line of code that was causing me problems. The comments didn’t quite provide enough detail to help me get through on my own. I show the original code and then the acceptable code (hidden).
def buildNextTrapInColumn(columnX,numTraps): # Change newY to use % to wrap around and only build trapsInColumn (9) traps per column newY = 7 * numTraps + 10 # ∆ Change this to use % 9!
Spoiler - code changed to % 9 that is acceptable
newY = 7 * (numTraps % trapsInColumn) + 10
I initially changed the + 10 to the % 9. The post below included the details not to change the current code, just add the % 9 (trapsInColumn) into it. Thanks @Deadpool198 Then I also missed the () to create the proper order of operations.
To summarize, a simple suggestion that the comments for this line of code may need an upgrade to give a few more clear hints.