Guest User

Untitled

a guest
May 19th, 2018
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 0.94 KB | None | 0 0
  1.  
  2.     Public Sub ajoutercarte(ByRef C() As carte, ByRef tailleC As Integer, ByVal e As carte)
  3.  
  4.         C(tailleC) = e
  5.         tailleC = tailleC + 1
  6.  
  7.     End Sub
  8.  
  9.  
  10.     Public Sub distribuercarte(ByRef J() As joueur)
  11.         Dim n As Integer
  12.         Dim i As Integer
  13.         Dim s As Integer
  14.         While tabTailleC <> 0
  15.             For i = 0 To 7
  16.                 For s = 0 To 3
  17.                     n = nbaleatoire(tabTailleC - 1)
  18.                     ajoutercarte(J(s).main, i, tabC(n))
  19.                     supprimercarte(tabC, tabTailleC, n)
  20.                 Next
  21.             Next
  22.         End While
  23.  
  24.     End Sub
  25.  
  26.   Public Structure carte
  27.         Dim val As Integer
  28.         Dim coul As String
  29.         Dim nom As String
  30.         Dim point As Integer
  31.     End Structure
  32.  
  33.  
  34.     Public Structure joueur
  35.         Dim main() As carte
  36.         Dim preneur As Boolean
  37.         Dim donneur As Boolean
  38.         Dim score As Integer
  39.     End Structure
Add Comment
Please, Sign In to add comment