Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
For each line starting at the given cell check if it's a good line
To do that iterate over all directions horizontal, vertical, and diagonals then check good lines naively