예제 #1
0
 /**
  * RuleJ54_1_2 constructor.
  * @param \Nonogram\Cell\Factory $cellFactory
  */
 public function __construct(\Nonogram\Cell\Factory $cellFactory)
 {
     parent::__construct($cellFactory);
 }
예제 #2
0
 private function processUpdateCounter(AbstractRuleJ54 $rule)
 {
     $updates = $rule->getUpdateCounter();
     $ruleClass = get_class($rule);
     $key = substr($ruleClass, strrpos($ruleClass, '\\') + 1);
     if (!isset($this->solvingStatistics[$key])) {
         $this->solvingStatistics[$key] = 0;
     }
     $this->solvingStatistics[$key] += $updates;
     return $updates;
 }