File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 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
129for _ 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+
You can’t perform that action at this time.
0 commit comments