Skip to content

Fix the scoring algorithm #3

@zedr

Description

@zedr

According to ChatGPT:

Scoring is based on two factors: the number of gems in the line and the number of lines created simultaneously. The more gems in the line and the more lines created, the higher the score.

Here's how the scoring works:

    Basic Score:
        3 gems in a line: 30 points
        4 gems in a line: 70 points
        5 gems in a line: 150 points

    Bonus Score for Combos:
        2 lines simultaneously: 10 points x the number of gems in both lines
        3 lines simultaneously: 20 points x the number of gems in all three lines
        4 lines simultaneously: 30 points x the number of gems in all four lines
        5 lines simultaneously: 40 points x the number of gems in all five lines

    For example, if you create three lines of 4 gems each, you will get a basic score of 210 points (70 x 3). If those three lines are created simultaneously, you will also get a bonus score of 60 points (20 x 3). So your total score for that move will be 270 points.

    Magic Jewel:
        If a line of three gems includes a Magic Jewel, the player will receive a bonus score of 50 points.

    For example, if you create a line of three gems and one of them is a Magic Jewel, you will get a basic score of 30 points and a Magic Jewel bonus of 50 points, for a total of 80 points.

The game ends when the gems reach the top of the board. The player with the highest score wins the game.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions