Start by writing down what the feature actually has to do, without worrying about code. What information does it receive? What should change? What should happen in a simple case, and what should happen when something goes wrong?
Turn those rules into rough pseudocode or a sketch. If one step is still a mystery, leave it as a placeholder and work through the parts around it. That can make the missing piece much more specific than โimplement the mechanic.โ
Then build the simplest version you can test, even if it's clumsy. Once you can see it working or failing on a small example, you have something concrete to improve.
6e~mivdaro_481:
What if the smallest piece I can come up with still feels impossible?
6b~rivetlantern_583:
Try writing out one example by hand, including the information available at each step. The first step you can't describe is a good place to ask a narrower question or do some research.