taliyos / OypuGame

Web-based game based on PuyoPuyo with Online Multiplayer!
MIT License
0 stars 0 forks source link

Scoring #15

Open taliyos opened 2 years ago

taliyos commented 2 years ago

A scoring system should be implemented to keep track of how the player is doing. This will additionally be useful when determining how to send "garbage" over the other players in multiplayer.

Scoring should be similar to Puyo Puyo, where continuous layers of chains are given higher rewards than a single layer.

Additional details will need to be researched.

taliyos commented 2 years ago

Scoring for Puyo Puyo is documented well at PuyoNexus.

The score per chain depends on a few different factors:

The formula is:

Score = (10 puyosCleared) (chainPower + colorBonus + groupBonus)

Since the terminology between Oypu and PuyoNexus is different (chain in Oypu refers to a group of 4 or more pieces of the same type that are connected while I think PuyoNexus uses chain to refer to the layers of pieces being destroyed before the next piece starts), here's some more details.

Score = (10 totalPiecesClearedInLayer) (chainPower colorBonus groupBonus)

chainPower = 1 2 3 4 5 6 7 8 9
0 8 16 32 64 96 128 160 192

(Increases by 32 after the 3rd chain)

colorBonus = Types Bonus
1 0
2 3
3 6
4 12
5 24
groupBonus = Pieces in Chain Bonus
4 0
5 2
6 3
7 4
8 5
9 6
10 7
11+ 10
taliyos commented 2 years ago

Scoring wasn't fully implemented, so I'm leaving this open.