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

Improve computation of tetris difference #8

Open
timotheeg opened this issue Jul 19, 2020 · 0 comments
Open

Improve computation of tetris difference #8

timotheeg opened this issue Jul 19, 2020 · 0 comments

Comments

@timotheeg
Copy link
Owner

The tetris difference is presented like this:
image

And is computed as follow:

score_diff / tetris_value_at_level_lagging_player

It is dynamic in the sense that once the lagging player's level increases, the difference in number of tetrises will be updated accordingly.

That's not good enough though.

Take this setup for example:

  • player 1 at 600k level 19
  • player 2 at 450k, and 120 lines level 18

A tetris at level 18 is worth 22,800, so the difference is currently displayed as:

(600000-500000) / 22800 ~= 6.6T

BUT, in reality, the difference is not 6.6 tetris at the tetris value of level 18, since player 2 can only score 3 tetris at level 18 before transition to level19.

This information is known and could be use to run a smarter computation. Taking into account the level increases as tetrises (4 lines) are cleared.

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

1 participant