Skip to content

Instantly share code, notes, and snippets.

@kishikawakatsumi
Created October 6, 2020 05:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kishikawakatsumi/b4f866efb1c1dc63b0a9cce000cf5688 to your computer and use it in GitHub Desktop.
Save kishikawakatsumi/b4f866efb1c1dc63b0a9cce000cf5688 to your computer and use it in GitHub Desktop.
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