Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaxPoints Calculation #21

Open
WuGGu opened this issue Dec 17, 2024 · 1 comment
Open

MaxPoints Calculation #21

WuGGu opened this issue Dec 17, 2024 · 1 comment

Comments

@WuGGu
Copy link

WuGGu commented Dec 17, 2024

Hi, and thanks for the Game.

How does the maximum points get calculated? I found this code. What does it mean? I would like to cut it to 10 points and than DeathMatch is this possible to set maxPoints by default to 10?

this.maxPoints = (this.curves.length - 1) * 10;

thanks a lot

@maechler
Copy link
Owner

@WuGGu You found exactly the right place in the code. It means that the maximum number of points is calculated as (numberOfPlayers - 1) * 10 (2 players ➝ 10, 3 players ➝ 20, 4 players ➝ 30, etc.). This means the maximum depends on the number of players, which is because with every additional player it is possible to get more points per round. Currently it is not possible to change this behavior without touching the code.

The death match is automatically triggered when at least two players reach the maximum number of points in the same round. It's also not possible to trigger it another way at the moment.

I hope this helps, kind regards!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants