2048.cpp icon indicating copy to clipboard operation
2048.cpp copied to clipboard

score and statistics wrong

Open tessus opened this issue 4 years ago • 5 comments

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 │
  └────────────────────┴─────────────┘

tessus avatar Apr 15 '20 03:04 tessus

Thanks for the bug-report @tessus ! Is it possible to have a copy of your scores.txt and statistics.txt in your 2048.cpp data directory?

tcoyvwac avatar Apr 17 '20 15:04 tcoyvwac

Sure, here you go:

scores.txt statistics.txt

tessus avatar Apr 17 '20 17:04 tessus

Just wanted to follow-up. Any update?

tessus avatar Aug 03 '20 17:08 tessus

Ping. I'm seeing similar results with git master 30597b1:

  ┌─────┬────────────────────┬──────────┬──────┬───────┬──────────────┬──────────────┐
  │ No. │ Name               │ Score    │ Won? │ Moves │ Largest Tile │ Duration     │
  ├─────┼────────────────────┼──────────┼──────┼───────┼──────────────┼──────────────┤
  │  1. │ x4                 │        0 │   No │    -1 │            2 │        4m 2s │
  └─────┴────────────────────┴──────────┴──────┴───────┴──────────────┴──────────────┘


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

scores.txt statistics.txt

nieder avatar Feb 19 '23 13:02 nieder

This project seems dead. The devs only would have had to play the game themselves to reproduce it. I also sent the requested files, yet nothing.

Maybe there's a fork out there that fixes this.

tessus avatar Feb 19 '23 18:02 tessus