I have never tried to play a character with such a rigid moral code that they only follow that, and don't care if the best and possibly necessary thing to do in a given situation is what "should" be done. I would expect that if I did try this that any DM would throw situations at me until my character grew up and realized things did not fit into neat little boxes.

One of the groups I played with had paladin in the party who refused too commit the sin of cowardice by running from battle and we would need to grab him and pull him with us when we ran. It was fun.
This is also to @Hilarian -- I tend to think that the position that moral codes cannot deal with the complexity of situational dynamics is itself a moral that prefers not to been as such. Just like when people say "let's not be political -- whether a statement is identified as 'political' or not is itself a political act informed by a political world view. See:
https://www.britannica.com/topic/situation-ethicshttp://www.bbc.co.uk/ethics/introduction/situation_1.shtmlSituation ethics is a moral code that opposes Kantian ethics, virtue ethics and rule utilitarianism. It's adherents often don't want to be seen as adherents because they prefer to see their thinking an expression of natural action and not an identifiable moral code. But they're wrong

;p
This would be interesting but sadly probably too much work to cover all the possibilities.
All possibilities, sure, yes. But I bet we could get a top 10

I think it would be fun, you could even throw in some silly ones