I just want convert an array of Player Names into a dictionary Scoreboard, giving everyone an initial score of 0.
Meaning...
var playerNames =
Here is how you can do that:
var playerNames = ["Harry", "Ron", "Hermione"] var dictionary = [String: Int]() for player in playerNames { dictionary[player] = 0 }