for ... in文の中にインデックスを取得する方法

for (index, player) in players.enumerated() {
    ...
}