diff options
author | emkael <emkael@tlen.pl> | 2016-06-03 14:25:04 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-06-03 14:25:04 +0200 |
commit | 976a36715880874f0286cfb1cf8d6e4486a05831 (patch) | |
tree | 2411af70a702ed179341e07b176026366d4b73f9 /src | |
parent | dfe4c3b00198172c0f4bee6b26ce3962c69e4ccd (diff) |
* lowest of most profitable sacrifices
Diffstat (limited to 'src')
-rw-r--r-- | src/ParContract.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ParContract.cs b/src/ParContract.cs index d767f0e..9255ca5 100644 --- a/src/ParContract.cs +++ b/src/ParContract.cs @@ -212,7 +212,8 @@ namespace BCDD possibleDefense = possibleDefense.FindAll(x => x.Score == optimumDefense.Score);
foreach (ParContract defense in possibleDefense)
{
- if (defense.Higher(optimumDefense))
+ // Lowest from the most profitable sacrifices
+ if (optimumDefense.Higher(defense))
{
optimumDefense = defense;
}
|