More formatting
parent
ef55b4bc2e
commit
ceef90be2e
|
@ -2,7 +2,7 @@
|
||||||
Public Shared Function Shuffle(list)
|
Public Shared Function Shuffle(list)
|
||||||
Dim max As Integer = list.Count - 1
|
Dim max As Integer = list.Count - 1
|
||||||
Dim random As New Random()
|
Dim random As New Random()
|
||||||
For x As Integer = 0 To max
|
For x = 0 To max
|
||||||
Dim rand As Integer = random.Next(0, max)
|
Dim rand As Integer = random.Next(0, max)
|
||||||
Dim temp = list(x)
|
Dim temp = list(x)
|
||||||
list(x) = list(rand)
|
list(x) = list(rand)
|
||||||
|
|
|
@ -50,8 +50,8 @@
|
||||||
playerToCheck.total = 0
|
playerToCheck.total = 0
|
||||||
Return
|
Return
|
||||||
End If
|
End If
|
||||||
Dim total As Integer = 0
|
Dim total = 0
|
||||||
Dim aceTotal As Integer = 0
|
Dim aceTotal = 0
|
||||||
For Each card In cards
|
For Each card In cards
|
||||||
Dim num As String = card.Item2
|
Dim num As String = card.Item2
|
||||||
If num = "K" Or num = "Q" Or num = "J" Then
|
If num = "K" Or num = "Q" Or num = "J" Then
|
||||||
|
@ -184,7 +184,7 @@
|
||||||
End Select
|
End Select
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Function CreateDeck() As List(Of Tuple(Of String, String))
|
Shared Function CreateDeck() As List(Of Tuple(Of String, String))
|
||||||
Dim response As New List(Of Tuple(Of String, String))
|
Dim response As New List(Of Tuple(Of String, String))
|
||||||
Dim nums As String() = {"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"}
|
Dim nums As String() = {"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"}
|
||||||
Dim suits As String() = {"Hearts", "Diamonds", "Spades", "Clubs"}
|
Dim suits As String() = {"Hearts", "Diamonds", "Spades", "Clubs"}
|
||||||
|
|
Loading…
Reference in New Issue