ARTICLE 2 - LIABILITY
 
6-1-201.  Accessory before the fact.
 
(a)  A person who knowingly aids or abets in the commission of a felony, or who counsels, encourages, hires, commands or procures a felony to be committed, is an accessory before the fact.
 
(b)  An accessory before the fact:
 
(i)  May be indicted, informed against, tried and convicted as if he were a principal;
 
(ii)  May be indicted, informed against, tried and convicted either before or after and whether or not the principal offender is indicted, informed against, tried or convicted; and
 
(iii)  Upon conviction, is subject to the same punishment and penalties as are prescribed by law for the punishment of the principal.
 
6-1-202.  Being under the influence not a defense; effect upon intent; "self-induced."
 
(a)  Self-induced intoxication of the defendant is not a defense to a criminal charge except to the extent that in any prosecution evidence of self-induced intoxication of the defendant may be offered when it is relevant to negate the existence of a specific intent which is an element of the crime.
 
(b)  Intoxication is self-induced if it is caused by substances which the defendant knows or ought to know have the tendency to cause intoxication and which he knowingly and voluntarily introduced or allowed to be introduced into his body unless they were introduced pursuant to medical advice. The fact that the defendant is dependent upon the intoxicating substance is not relevant in determining whether his intoxication is self-induced.
 
6-1-203.  Battered woman syndrome.
 
(a)  The "battered woman syndrome" is defined as a subset under the diagnosis of Post-Traumatic Stress Disorder established in the Diagnostic and Statistical Manual of Mental Disorders III - Revised of the American Psychiatric Association.
 
(b)  If a person is charged with a crime involving the use of force against another, and the person raises the affirmative defense of self-defense, the person may introduce expert testimony that the person suffered from the syndrome, to establish the necessary requisite belief of an imminent danger of death or great bodily harm as an element of the affirmative defense, to justify the person's use of force.
 
6-1-204.  Immunity from civil action for justifiable use of force; attorney fees.
 
(a)  Except as provided by W.S. 6-1-103(a), a person who uses reasonable defensive force pursuant to W.S. 6-2-602 is immune from civil action for the use of the force.
 
(b)  In a civil action filed against a person related to the person's use of defensive force, the person may file a motion with the court asserting that the person used reasonable defensive force under W.S. 6-2-602. Upon the filing of the motion the court shall hold a hearing prior to trial and shall grant the person's motion if he proves by a preponderance of the evidence that he used reasonable defensive force under W.S. 6-2-602.
 
(c)  A court shall award reasonable attorney fees, court costs, compensation for any loss of income and all other expenses incurred by a person in defense of any civil action arising from the person's use of reasonable defensive force pursuant to W.S. 6-2-602 if the court finds that the defendant is immune from civil action under subsection (a) of this section.
 
6-1-205.  Limitations on criminal liability for digital expression.
 
(a)  A digital expression that does not otherwise constitute a crime or subject the person responsible for creating the digital expression to criminal liability under the Wyoming Criminal Code shall not serve as the sole basis for any criminal liability based on the use of that digital expression by another person.
 
(b)  Hosting or storing a digital expression on a computer, computer network or computer system in Wyoming in a manner that does not otherwise constitute a crime or subject the person hosting or storing the digital expression to criminal liability under the Wyoming Criminal Code shall not serve as the sole basis for any criminal liability based on the use of that digital expression by another person.
 
(c)  Nothing in this section shall be construed to limit or prohibit liability for criminal activity merely because the conduct was in part initiated or carried out by means of a digital expression.
 
(d)  As used in this section:
 
(i)  "Digital expression" means an expression that is communicated through source code or a computer program;
 
(ii)  "Computer" means as defined in W.S. 6-3-501(a)(ii);
 
(iii)  "Computer network" means as defined in W.S. 6-3-501(a)(iii);
 
(iv)  "Computer program" means as defined in W.S. 6-3-501(a)(iv);
 
(v)  "Computer software" mean as defined by W.S. 6-3-501(a)(v);
 
(vi)  "Computer system" means as defined in W.S. 6-3-501(a)(vi);
 
(vii)  "Source code" means any form of work used to create or modify a computer program. "Source code" includes:
 
(A)  Instructions and statements expressed in a computer programming language;
 
(B)  Computer programming comments, notes and memoranda;
 
(C)  Design documents and functional specifications for a computer program.
 
6-1-206.  Artificial intelligence; liability and defense.
 
(a)  Nothing in the Wyoming Criminal Code shall be construed to prohibit the application of this code against activity facilitated by an artificial intelligence system.
 
(b)  The use of an artificial intelligence system by a person to commit a criminal offense shall not be a defense to a criminal charge.