struct Player {
var name: String
var highScore: Int = 0
var history: [Int] = []
init(_ name: String) {
self.name = name
}
}
var player = Player("Tomas")
// define a structure
struct Person {
// define two properties
var name = ""
var age = 0
}
// create instance of Person
var person1 = Person()
// access properties and assign new values
person1.age = 21
person1.name = "Rick"
print("Name: (person1.name) and Age: ( person1.age) ")