+3  A: 

In the last part of the first line (handProbability[localTied] / 2.0) you are trying to divide an array (hardProbability[localTied]) instead of a number (one of its values).

Avi
oh, haha, This is ridiculous, that last part should be handProbabilityTotal[localTied] thank you
+1  A: 

Since handProbability is the multidimensional array, it's impossible to divide an array to number:

handProbability[localTied] / 2.0

Sure, it gives you the error. Fix this line. Have you probably meant handProbabilityTotal?

Bar
+3  A: 

The line before last line has the issue.

positivePot = 
   (handProbability[localBehind][localAhead] + 
   (handProbability[localBehind][localTied] / 2.0) + 
   (handProbability[localTied][localAhead] / 2.0) ) / 
   (handProbabilityTotal[localBehind] + (handProbability[localTied] / 2.0));

handProbability is a two dimensional double array. So handProbability[localTied] is an array of doubles. it is not a double value. Based on your last line, I think it should be handProbabilityTotal[localTied].

Sujee