Currently, player names and scores are held in separate variables (parallel vectors). Instead, we want to encapsulate player data (their name and score) within a dedicated Player class so we can have a vector of Players rather than two vectors of names and scores.
Currently, player names and scores are held in separate variables (parallel vectors). Instead, we want to encapsulate player data (their name and score) within a dedicated
Playerclass so we can have a vector of Players rather than two vectors of names and scores.