Keeping it simple, have you tried to solve something on your own? Even in the case here, making something similar but not with the exact code from the book, but a "close enough" solution. And putting your own spin on it that makes sense for your structure.
I am not exactly a beginner (nor exactly experienced), but I had this moment with a minesweeper clone. I wasn't quite sure on structure with first attempt. I waited a while and eventually figured out how to actually start and complete it.