score update
continuous-integration/drone/push Build is failing Details

test_old_branch
Jérémy Mouyon 11 months ago
parent 377c81c48c
commit c8c2e55609

@ -25,7 +25,7 @@ namespace QwirkleClassLibrary.Players
public override string ToString()
{
return PlayerName + " Date last game :" + Date.ToString() + " Points :" + Points + " Win : " + Victories;
return PlayerName + " / " + Date.ToString() + " / " + Points + " / " + Victories;
}
}

@ -261,11 +261,15 @@ static void ShowScoreBoard(Game g)
static void ShowLeaderboard(Leaderboard leaderboard)
{
WriteLine(" --------------------- THE LEADERBOARD : ---------------------");
WriteLine("Position : | PlayerTag : | Last Date : | Points : | Victories :");
for (int i=0; i<leaderboard.LB.Count; i++)
{
WriteLine("[" + i + "] " + leaderboard.LB[i].ToString());
WriteLine("[" + (i+1) + "] " + leaderboard.LB[i].ToString());
}
WriteLine();
WriteLine();
}
static void MainMenu(Game game)
@ -343,6 +347,7 @@ static void MainGame()
AddPlayers(game);
game.StartGame();
MainMenu(game);
leaderboard.AddScoreInLead(game.ScoreBoard);
break;
case 2:
ShowLeaderboard(leaderboard);

Loading…
Cancel
Save