In the question, if you want to know how to look at the wooden ruler to detect bandits, you can refer to the following:
Find the old man outside Chang'an City, ask him for a pass, then go to Cuiwei Mountain and kill five bandits, and a fleeing bandit will appear. If you catch him, you can look at the bandit's wooden ruler and you can see the code.