I want to know the minimum number of lines needed to touch every square of an $n \times n$ grid. The only added rule is that the line has to pass inside the square, not on the edge/corner. I have found a solution for $n-1$ lines for all $2<n\le 10$ but not with fewer lines. I figure you can represent the lines by the squares they pass through, thus making a finite amount of "lines", but I don't have many further ideas.
Here is an example of what I mean by "covering a square". The line just needs to pass through any part of the square: 
Here is also a solution for a $3 \times 3$ grid with 2 lines:



I have worked on and asked many others about this problem. I think this is a hard problem. According to the authors of the paper below, it is an open problem, as of 2013.
I claim to have a construction of $n-1$ lines for all $n$, but I never wrote it down formally. I believe this to be the correct answer, but lower bound proofs are quite difficult. For small $n$ (say, $n \leq 9$), I could prove a matching lower bound by some ad hoc arguments.
If you want to have an interactive go at this problem, check out my website: https://bob1123.github.io/website/linecovering.html.
Update (2023-11-09): https://bob1123.github.io/linecovering.html
A trivial lower bound is $n/2$. A better lower bound of $2n/3$ is known. See Eyal Ackerman and Rom Pinchasi. "Covering a chessboard with staircase walks." Discrete Mathematics 313.22 (2013): 2547-2551. They generalize from lines to "monotone paths," i.e. contiguous sets of squares which always move down (or stay the same) when going right or always move up (or stay the same) when going right. When covering with monotone paths, the $2n/3$ is tight, so to get to $n-1$ you need to exploit the special structure of lines.
I will note that the only follow-up I know of is Kerimov, Azer. "Covering a rectangular chessboard with staircase walks." Discrete Mathematics 338.12 (2015): 2229-2233. They generalize from $n \times n$ board to an $n \times m$ board.