Most people who study Chinese law learn early on about Judge Dee, "a semi-fictional character based on the historical figure Di Renjie, magistrate and statesman of the Tang court. The character first appeared in the 18th century Chinese detective novel Di Gong An. After Robert van Gulik came across it in a second-hand book store in Tokyo, he translated the novel into English and then used the style and characters to write his original Judge Dee stories." (The quoted text is from the Wikipedia entry.)

Now in addition to van Gulik's great stories, we have the Judge Dee computer game. I have no idea if it's any good, and they've written the wrong character for Dee on the main page (蒂 instead of 狄), but hey, anything as amazing as a computer game about Chinese legal history is worth a mention. If anyone tries it out, please let me know what you think in the comments.