Skip to content

Commit

Permalink
Merge pull request #25 from dds-bridge/lasttrick-bug
Browse files Browse the repository at this point in the history
Fixes bugs in LastTrickWinner
  • Loading branch information
sorenhein committed Jan 5, 2015
2 parents 5fdd2d3 + 6a8d1a2 commit 7e5694b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/SolverIF.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ void LastTrickWinner(
{
hp = handId(dl->first, h);
lastTrickSuit[hp] = dl->currentTrickSuit[h];
lastTrickRank[hp] = dl->currentTrickRank[h];
lastTrickRank[hp] = bitMapRank[dl->currentTrickRank[h]];
}

for (h = handRelFirst; h < DDS_HANDS; h++)
Expand Down Expand Up @@ -1157,8 +1157,8 @@ void LastTrickWinner(
}
}

* leadRank = lastTrickRank[handRelFirst];
* leadSuit = lastTrickSuit[handRelFirst];
* leadRank = highestRank[maxRank];
* leadSuit = maxSuit;
* leadSideWins = ((handToPlay == maxHand ||
partner[handToPlay] == maxHand) ? 1 : 0);
}
Expand Down

0 comments on commit 7e5694b

Please sign in to comment.