Fix some $n\in\mathbb{N}$ known to you and the fox. There is a hole numbered $i$ for every $i\in[n]$, and the fox is in one of them. Every morning you can check a hole and win if you catch the fox there. Otherwise that evening the fox moves from its hole $k$ to one of $\left\{k-1,k+1\right\}\cap[n]$. The process repeats indefinitely until the fox is caught. Do you have a strategy to catch it eventually, regardless of how it moves?
==============================================
Solution:
Lemma: if at some point the fox is at hole $k_1$ when we check hole $k_2$ where $k_1\le k_2$ have the same parity, then we will catch it in at most $k_2-2$ days if we check holes $k_2-1,k_2-2,\dots,2$ on subsequent days.
Checking holes $$2,2,3,4,\dots,n-2,n-1,n-1,n-2,n-3,\dots,3,2$$ suffices. Initial two checkings on hole $2$ makes sure that the fox is not in hole $1$, hence if it is not caught when hole $n-1$ is first checked, the fox's and your holes have different parity. The second check on hole $n-1$ serves two purposes: to make sure the fox's hole is not beyond yours, and to make both holes of same parity. Then, apply the lemma again after interchanging the role of holes $2$ and $n-1$ the fox will be caught by the time you check $2$.