In strict accordance with the rules, especially of card games; in the proper or expected manner.
to do something exactly, precisely, or in a formulaic way.