Fighting is usually performed by one or more enforcers on a given hockey team and is governed by a complex system of unwritten rules that players, coaches, officials, and the media refer to as "the code". Some fights are spontaneous, while others are premeditated by the participants.