It is quite challenging. I think giving a bit more context would bring it within an enjoyable range; e.g. showing the entire file, including the full path
Just like in geoguessr you could have different game modes. Or maybe you can move choose to step through the repository (up in file, down in file, up to parent directory, etc) but lose points/seconds the more of the code you view.