예제 #1
0
 public void StoreResults(bool isWinner, NimStateStore stateStore)
 {
     int multi = (!isWinner) ? 1 : -1;
     for (int i = 0; i < History.Count; i++)
         stateStore.AddScore(History[i], ((double) (multi * (i + 1))) / History.Count);
 }