src/quagen/ai/biased.py
def _score_candidates(self, augmented_candidates):
        """
        Using the augmented data for every spot, gives the spot a score.

        Args:
            augmented_candidates (list): Spots augmented with  _augment_candidate

        """
        for spot in augmented_candidates:
            score = spot["gain_ai"]

            # If the AI has the lead, let this AI consider the moves of
            # the opponent to perhaps play defense if the gains for the
            # opponent on a spot are enough to outweight our gains.
            if self._game.is_leading(self._color, "projected"):
                score += spot["gain_opponents"] * 0.34

            spot["score"] = score

        Using the augmented data for every spot, gives the spot a score.

        Args:
            augmented_candidates (list): Spots augmented with  _augment_candidate

        
Using the augmented data for every spot, gives the spot a score.
Using the augmented data for every spot gives the spot a score .
def _score_candidates(self, augmented_candidates):
        for spot in augmented_candidates:
            score = spot["gain_ai"]
            if self._game.is_leading(self._color, "projected"):
                score += spot["gain_opponents"] * 0.34
            spot["score"] = score
def _score_candidates ( self , augmented_candidates ) : for spot in augmented_candidates : score = spot [ "gain_ai" ] if self . _game . is_leading ( self . _color , "projected" ) : score += spot [ "gain_opponents" ] * 0.34 spot [ "score" ] = score
Using the augmented data for every spot, gives the spot a score.
Using the augmented data for every spot gives the spot a score .
"""
        Using the augmented data for every spot, gives the spot a score.

        Args:
            augmented_candidates (list): Spots augmented with  _augment_candidate

        """ # If the AI has the lead, let this AI consider the moves of # the opponent to perhaps play defense if the gains for the # opponent on a spot are enough to outweight our gains.
self
augmented_candidates
Spots augmented with  _augment_candidate
Spots augmented with _augment_candidate