Skip to content

Commit ce01bf8

Browse files
authored
Update Yacht Sea.swift
1 parent f8e3d95 commit ce01bf8

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Swift Practice + Warmups/Yacht Sea.swift

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,14 @@
44
// Description: Yacht Sea - Missing "4 of a kind, Big Straight, and Choice" Detection. Original approach.
55
// note, full house will be recoded to use a set or dictionary instead of current approach as per goal - however, fully functional at said moment.
66

7-
// variables
8-
var highestScore: Int = 0 // highest score, default zero
9-
var category: String = "default" // category default temp placeholder
10-
var dice = [Int]()
7+
118

129
for _ in 1...20 {
10+
// variables
11+
var highestScore: Int = 0 // highest score, default zero
12+
var category: String = "default" // category default temp placeholder
13+
var dice = [Int]()
14+
1315
var array = [Int]()
1416

1517
// create random array
@@ -71,5 +73,6 @@ for _ in 1...20 {
7173
category = numerals[index]
7274
dice = array
7375
}
76+
print("input: \(dice) | output: \(highestScore) | explanation: \(category)")
7477
}
75-
print("input: \(dice) | output: \(highestScore) | explanation: \(category)")
78+

0 commit comments

Comments
 (0)