修改接龙计分规则

This commit is contained in:
zhl 2021-12-13 11:50:00 +08:00
parent 79a1bbb9c9
commit 7bd8b5a4b2

View File

@ -98,7 +98,7 @@ public class JCSolitaireLogic {
} }
if (score > SCORE_CHANGE_POINT) { if (score > SCORE_CHANGE_POINT) {
double rate = score / SCORE_CHANGE_POINT; double rate = score / SCORE_CHANGE_POINT;
score = (int) (Math.atan(rate) / Math.PI * SCORE_CHANGE_POINT); score = (int) (((Math.atan(rate) / Math.PI * SCORE_CHANGE_POINT - 2500) * 4 + SCORE_CHANGE_POINT));
} }
int rate = hasCard ? 2 : 1; int rate = hasCard ? 2 : 1;
return score * rate; return score * rate;