int Player::getScore() { Global *g = Global::get(); int computedScore = 0; for (Item &item : items) { computedScore += item.getValue(); } return (computedScore * g->getDifficulty() + getSteps()); }