public function __construct() { parent::__construct(new DiceChanceEvaluator(Roller1d6::getIt())); }
/** * @param int $maxRollToGetValue * * @return int */ public function evaluate($maxRollToGetValue) { return $maxRollToGetValue <= $this->roller1d6->roll()->getValue() ? 1 : 0; }