This is a game in the vein of the Arcade Pack spoof that went around a few decades ago. It's a procedurally generated version of Dragon's Lair where your options are U/D/L/R and S (up, down, left, right, and sword).
It seems to go on forever. I used cheats and undo eventually and still never found the end, but the scenarios eventually looped (but not the same order). Looking at the Club Floyd transcript, they eventually just gave up, so I don't think it ends.
I love this concept and this kind of spoof. As a game itself it wears thin really quickly, but spoofing arcade games is funny.