TeamGameFifteen1-Telerik / GameFifteen

Puzzle - a team project for Telerik Software Academy's High Quality Code course
MIT License
1 stars 0 forks source link

Scoreboard doesn't work as expected #15

Closed datavelizar closed 9 years ago

datavelizar commented 9 years ago

Only last entered name of the player is present in the scoreboard. After 4 or more games scoreboard may look like:

  1. lastPlayersName --> 18 moves
  2. lastPlayersName --> 18 moves
  3. lastPlayersName --> 18 moves
  4. lastPlayersName --> 18 moves

The original code doesn't have this bug!

datavelizar commented 9 years ago

Added to StartNewGame() method this.player = new Player(); this.player.Moves = 0;

datavelizar commented 9 years ago

After recent refactoring and changes only last entered name of the player is present in the scoreboard. So the issue needs to be reopened.