Help with blackjack code

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Jan 2007
Posts: 3
Reputation: Steve17 is an unknown quantity at this point 
Solved Threads: 0
Steve17 Steve17 is offline Offline
Newbie Poster

Help with blackjack code

 
0
  #1
Jan 17th, 2007
Hi guys/girls i need help on my black jack code a.s.a.p. i got some of the code done but i don't think its right


Dim a() As Integer 'Declare a as integer
Dim c As Integer 'Declare c as Integer
Dim inx, secc, k, levl, tm, totl, rund, rund1 As Byte 'Declare as 1 character
Dim op As Boolean ' Declare op as boolean (True or False)
Dim movl(63) As Integer ' Declare movl as integer
Dim movt(63) As Integer ' Declare movt as integer

Private Sub cmdHit_Click()
If cmdHit Then Randomize images 'when the command hit is clicked, it shuffles the cards
'image will move to the measurements given
Image60.Move 16, 416, 100, 145
Image58.Move 16, 416, 100, 145
Image6.Move 344, 400, 100, 145
Image7.Move 344, 400, 100, 145
Image8.Move 344, 400, 100, 145

End Sub
Private Sub cmdStartGame_Click()
'image will move to the measurements given
Image2.Move 216, 152, 100, 145
Image1.Move 336, 152, 100, 145
Image60.Move 224, 400, 100, 145
Image58.Move 344, 400, 100, 145
End Sub




Private Sub Form_Load()
Label2.FontSize = 15 'Label 2 will change font size to 15
End Sub




Private Sub Shuffle_Click()
'image will move to the measurements given
Image3.Move 16, 176, 100, 145
Image4.Move 16, 176, 100, 145
Image5.Move 16, 176, 100, 145
Image6.Move 16, 176, 100, 145
Image7.Move 16, 176, 100, 145
Image8.Move 16, 176, 100, 145
Image9.Move 16, 176, 100, 145
Image10.Move 16, 176, 100, 145
Image11.Move 16, 176, 100, 145
Image12.Move 16, 176, 100, 145
Image12.Move 16, 176, 100, 145
Image13.Move 16, 176, 100, 145
Image14.Move 16, 176, 100, 145
Image15.Move 16, 176, 100, 145
Image16.Move 16, 176, 100, 145
Image17.Move 16, 176, 100, 145
Image18.Move 16, 176, 100, 145
Image19.Move 16, 176, 100, 145
Image21.Move 16, 176, 100, 145
Image22.Move 16, 176, 100, 145
Image23.Move 16, 176, 100, 145
Image24.Move 16, 176, 100, 145
Image25.Move 16, 176, 100, 145
Image26.Move 16, 176, 100, 145
Image27.Move 16, 176, 100, 145
Image28.Move 16, 176, 100, 145
Image29.Move 16, 176, 100, 145
Image30.Move 16, 176, 100, 145
Image31.Move 16, 176, 100, 145
Image32.Move 16, 176, 100, 145
Image33.Move 16, 176, 100, 145
Image34.Move 16, 176, 100, 145
Image35.Move 16, 176, 100, 145
Image36.Move 16, 176, 100, 145
Shuffle.Enabled = True
End Sub


so that's the code i got and i have all the images of the cards on my form and is that the right way to do it or am i way off?? can some one help me with my code please
Last edited by Steve17; Jan 17th, 2007 at 2:12 pm.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Help with blackjack code

 
0
  #2
Jan 17th, 2007
The shuffle part could be reduced by using a for loop.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3
Reputation: Steve17 is an unknown quantity at this point 
Solved Threads: 0
Steve17 Steve17 is offline Offline
Newbie Poster

Re: Help with blackjack code

 
0
  #3
Jan 17th, 2007
whats a for loop srry but im not a expert at visual basic
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Help with blackjack code

 
0
  #4
Jan 19th, 2007
a for loop is like... :lol:

for start to end step amount
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 3
Reputation: Steve17 is an unknown quantity at this point 
Solved Threads: 0
Steve17 Steve17 is offline Offline
Newbie Poster

Re: Help with blackjack code

 
0
  #5
Jan 19th, 2007
can some one help me finish the game add me to msn nadia.marquez@hotmail.com (my sisters email my email got messed up) pleasee!~!!
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 5,273
Reputation: iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold iamthwee is a splendid one to behold 
Solved Threads: 378
Featured Poster
iamthwee's Avatar
iamthwee iamthwee is offline Offline
Posting Expert

Re: Help with blackjack code

 
0
  #6
Jan 19th, 2007
We don't do homework.
*Voted best profile in the world*
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 2
Reputation: Joni81 is an unknown quantity at this point 
Solved Threads: 0
Joni81 Joni81 is offline Offline
Newbie Poster

Re: Help with blackjack code

 
0
  #7
Feb 17th, 2008
Blackjack has always been my fav casino I dont know if its the rush of the game or the fact of instant action , I also like three
card poker but my luck is not be very good on it honestly , I like playing blacjack quite a bit in online casinos so if
anybody knows of any good blackjack casinos with good bonuses let me know
<a href="http://www.playblackjack.com">play blackjack</a>
Last edited by Joni81; Feb 17th, 2008 at 7:42 pm.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



Tag cloud for VB.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC