private float Expand(SimRoundResult result) { if (result.SecondPlayer.RoundPoints >= MaxPoints) { if (result.FirstPlayer.RoundPoints < HalfPoints) { return(2); } else { return(1); } } else if (result.FirstPlayer.RoundPoints >= MaxPoints) { if (result.SecondPlayer.RoundPoints < HalfPoints) { return(-2); } else { return(-1); } } else if (result.FirstPlayer.GameCloser) { return(3); } else if (result.SecondPlayer.GameCloser) { return(-3); } else if (result.LastWinner.Player == this) { return(1); } return(-1); }
private float Expand(SimRoundResult result) { if (result.SecondPlayer.RoundPoints >= MaxPoints) { if (result.FirstPlayer.RoundPoints < HalfPoints) { return 2; } else { return 1; } } else if (result.FirstPlayer.RoundPoints >= MaxPoints) { if (result.SecondPlayer.RoundPoints < HalfPoints) { return -2; } else { return -1; } } else if (result.FirstPlayer.GameCloser) { return 3; } else if (result.SecondPlayer.GameCloser) { return -3; } else if (result.LastWinner.Player == this) { return 1; } return -1; }