(I would pay a lot for some fat 1500 page, leather-bound tome of wisdom and anecdotes about historical foot guns, by Carl von Clausewitz, titled "1D Chess". And it's inevitable multi-authored, Harvard-published much thicker contemporary-world sequel.)
https://github.com/Rowan441/1d-chess/issues/1
Edit: There's a second solution where instead of moving the rook back 2, move the king forward one and the take the black knight with the rook as the checkmate move.
Translating your notation to normal chess notation:
White king on h1, black rooks on a2 and g8, black king in some random other place, white to move.
That is a draw, because white is NOT in check, but has no legal moves. That scenario is called stalemate. If white were in check, it would be checkmate and a win for black. Set it up on any chess analysis board website and it will say the game is a draw.