Rules

Simple version:

More complete versions: