-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCardModel.swift
78 lines (62 loc) · 2.02 KB
/
CardModel.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
//
// File.swift
// Day99Challange
//
// Created by Eren Erinanc on 14.05.2021.
//
import Foundation
class CardModel {
func getCards() -> [Card] {
var generatedCardsArray = [Card]()
let card1 = Card()
let card2 = Card()
card1.imageName = "beach"
card2.imageName = "beach"
generatedCardsArray.append(card1)
generatedCardsArray.append(card2)
let card3 = Card()
let card4 = Card()
card3.imageName = "coctail"
card4.imageName = "coctail"
generatedCardsArray.append(card3)
generatedCardsArray.append(card4)
let card5 = Card()
let card6 = Card()
card5.imageName = "girls"
card6.imageName = "girls"
generatedCardsArray.append(card5)
generatedCardsArray.append(card6)
let card7 = Card()
let card8 = Card()
card7.imageName = "icecream"
card8.imageName = "icecream"
generatedCardsArray.append(card7)
generatedCardsArray.append(card8)
let card9 = Card()
let card10 = Card()
card9.imageName = "picnic"
card10.imageName = "picnic"
generatedCardsArray.append(card9)
generatedCardsArray.append(card10)
let card11 = Card()
let card12 = Card()
card11.imageName = "pool"
card12.imageName = "pool"
generatedCardsArray.append(card11)
generatedCardsArray.append(card12)
let card13 = Card()
let card14 = Card()
card13.imageName = "tiger"
card14.imageName = "tiger"
generatedCardsArray.append(card13)
generatedCardsArray.append(card14)
let card15 = Card()
let card16 = Card()
card15.imageName = "water"
card16.imageName = "water"
generatedCardsArray.append(card15)
generatedCardsArray.append(card16)
generatedCardsArray.shuffle()
return generatedCardsArray
}
}