Skip to content

score and statistics wrong #120

@tessus

Description

@tessus

Compiled from git master 81c0eeb

  ┌───────────────────────────┐
  │ SCORE:               1156 │
  │ BEST SCORE:          1156 │
  │ MOVES:                127 │
  └───────────────────────────┘

  ┌──────┬──────┬──────┬──────┐
  │    2 │    4 │   32 │    4 │
  ├──────┼──────┼──────┼──────┤
  │    4 │    8 │    4 │    2 │
  ├──────┼──────┼──────┼──────┤
  │    8 │    2 │  128 │    8 │
  ├──────┼──────┼──────┼──────┤
  │   16 │   32 │    2 │   16 │
  └──────┴──────┴──────┴──────┘

  Game over! You lose.


  STATISTICS
  ──────────
  Final score:       0
  Largest Tile:      2
  Number of moves:   -1
  Time taken:        37s

Hmm, not really correct.

It should be:

  Final score:       1156
  Largest Tile:      128
  Number of moves:   127

And this is what shows up for View Highscores and Statistics:

  SCOREBOARD
  ──────────
  ┌─────┬────────────────────┬──────────┬──────┬───────┬──────────────┬──────────────┐
  │ No. │ Name               │ Score    │ Won? │ Moves │ Largest Tile │ Duration     │
  ├─────┼────────────────────┼──────────┼──────┼───────┼──────────────┼──────────────┤
  │  1. │ kc                 │        0 │   No │    -1 │            2 │       9m 22s │
  │  2. │ kc                 │        0 │   No │    -1 │            2 │          37s │
  └─────┴────────────────────┴──────────┴──────┴───────┴──────────────┴──────────────┘


  STATISTICS
  ──────────
  ┌────────────────────┬─────────────┐
  │ Best Score         │           0 │
  │ Game Count         │           2 │
  │ Number of Wins     │           0 │
  │ Total Moves Played │ 18446744073709551614 │
  │ Total Duration     │      9m 59s │
  └────────────────────┴─────────────┘

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