Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

score and statistics wrong #120

Open
tessus opened this issue Apr 15, 2020 · 5 comments · May be fixed by #148
Open

score and statistics wrong #120

tessus opened this issue Apr 15, 2020 · 5 comments · May be fixed by #148

Comments

@tessus
Copy link

tessus commented Apr 15, 2020

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 │
  └────────────────────┴─────────────┘
@tcoyvwac
Copy link
Collaborator

tcoyvwac commented Apr 17, 2020

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?

@tessus
Copy link
Author

tessus commented Apr 17, 2020

Sure, here you go:

scores.txt
statistics.txt

@tessus
Copy link
Author

tessus commented Aug 3, 2020

Just wanted to follow-up. Any update?

@nieder
Copy link

nieder commented Feb 19, 2023

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

@tessus
Copy link
Author

tessus commented Feb 19, 2023

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.

@yankov-pt yankov-pt linked a pull request Sep 14, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants