eric-kansas/Gold-Rush — Issue #36: Scoring bug
Author: PhilMoc
Created: 2012-02-28 21:54:58+00:00
State: open

Before I forget about this again I should put it down here.

I believe this only occurs when you you have multiple cases of more than one of a kind (example: my hand has two kings, one 10, and two queens).

For some reason this code bloc in "ScoringSystem.cs" (line 76) fails to find the a lowestRemaining card:

//add value of lowest other card
int lowestRemaining = 1000;
for(int k = 0; k < non_matching.Count; k++)
{

if (non_matching[k].data.Value < lowestRemaining)
lowestRemaining = non_matching[k].data.Value;

}

As a result of this, 1000 is added to the player's score. I'm not sure what's causing this.