Ora et Labora
What if neither player can build the remaining buildings, for example when both cloisters are blocked?
The rules do not cover it, but the publisher ruled that the game ends as soon as no building can legally be built. Players may not completely surround their own cloister. If you can build but neither of you wants to, the player who is behind should finish the game.