LonamiWebs/Klooni1010

Multiplier - No issue

Closed this issue · 2 comments

Hi Lonami!

I love our game - it's the only game on my phone and I'm pretty addicted.

But... what about multipliers? The more lines you clear, the higher the score you get? Like in Tetris, where clearing four lines have a higher value then clearing four times one line.

Or is such a thing already implemeted and I just missed it?

Such thing is already implemented and you just missed it :)

I'm glad you enjoy the game, thanks for the feedback!

You can calculate the same with this JavaScript code (Ctrl+Shift+I on Chrome or Chromium):

function calculateClearScore(stripsCleared, boardSize) {
    if (stripsCleared < 1) return 0;
    if (stripsCleared == 1) return boardSize;
    return boardSize * stripsCleared + calculateClearScore(stripsCleared - 1, boardSize);
}

for (var i = 0; i <= 6; ++i) {
    console.log("Clearing "+i+" strips gives "+calculateClearScore(i, 10));
}

With this result:

Clearing 1 strips gives 10
Clearing 2 strips gives 30
Clearing 3 strips gives 60
Clearing 4 strips gives 100
Clearing 5 strips gives 150
Clearing 6 strips gives 210