Skip to content

Commit

Permalink
replace cheeky doc for PunnettSquare getAdditionalCell, #203
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelzoom committed Sep 15, 2020
1 parent c7f58c5 commit e64756c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/common/model/PunnettSquare.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,10 @@ class PunnettSquare {
}

/**
* Gets the cell in the Punnett square to use for an additional offspring. If the Punnett square contains a
* homozygous mutation, that genotype is returned. Otherwise, read the code comments :)
* REVIEW: Nice comments :)
* This is used to create a 5th offspring when a recessive mutant mates eagerly.
* Gets the cell in the Punnett square to use for an additional offspring. This is used to create a 5th offspring
* when a recessive mutant mates eagerly. If the Punnett square contains a homozygous mutation, that genotype is
* returned. Second choice is a dominant genotype, and a random selection is the last resort.
*
* @param {Allele} mutantAllele
* @param {Allele|null} dominantAllele
* @returns {Cell}
Expand Down

0 comments on commit e64756c

Please sign in to comment.