Created
October 6, 2020 05:58
-
-
Save kishikawakatsumi/b4f866efb1c1dc63b0a9cce000cf5688 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct Player { | |
var name: String | |
var highScore: Int = 0 | |
var history: [Int] = [] | |
init(_ name: String) { | |
self.name = name | |
} | |
} | |
var player = Player("Tomas") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment