public function update(Evaluation $evaluation, NodeType $nodeType)
    {
        if ($nodeType == NodeType::MAX()) {
            $this->alpha = max($this->alpha, $evaluation->score);
        } elseif ($nodeType == NodeType::MIN()) {
            $this->beta = min($this->beta, $evaluation->score);
        }
    }
public function update(Evaluation $evaluation, NodeType $nodeType)
    {
        if ($nodeType == NodeType::MAX()) {
            $this->alpha = max($this->alpha, $evaluation->score);
        } elseif ($nodeType == NodeType::MIN()) {
            $this->beta = min($this->beta, $evaluation->score);
        }
    }
public function update ( Evaluation $ evaluation , NodeType $ nodeType ) { if ( $ nodeType == NodeType :: MAX ( ) ) { $ this -> alpha = max ( $ this -> alpha , $ evaluation -> score ) ; } elseif ( $ nodeType == NodeType :: MIN ( ) ) { $ this -> beta = min ( $ this -> beta , $ evaluation -> score ) ; } }
Update the constraint with new information
Update the constraint with new information