src/players/RuleBasedPlayer.js
/** The rule method adds a rule to the players' list of rules.
	*/
The rule method adds a rule to the players' list of rules.
The rule method adds a rule to the players ' list of rules .
function rule(f) {
		raiseIf(typeof(f) !== 'function', 'A rule must be in the form of a function!');
		this.rules.push(f);
		return this; 
	}
function rule ( f ) { raiseIf ( typeof ( f ) !== 'function' , 'A rule must be in the form of a function!' ) ; this . rules . push ( f ) ; return this ; }
The rule method adds a rule to the players' list of rules.
The rule method adds a rule to the players ' list of rules .
// for chaining.