The player's code and the written law can pull apart
Western fiction often sets law against the game: law against justice, law against what is right. In some books the two are on the same side, as when a hero who fights with fists and shakes hands afterward prevents a lynching.
From Oriard, 1991, p. 272. Oriard, M. (1991). Sporting with the gods: the rhetoric of play and game in American culture. Cambridge: Cambridge University Press. ISBN 0-521-39113-X. (The copy is the digital printing of 2007, ISBN 978-0-521-39113-9. No DOI found.)