944,198 Members | Top Members by Rank

Ad:
  • VB.NET Discussion Thread
  • Unsolved
  • Views: 6355
  • VB.NET RSS
Jan 17th, 2007
0

Help with blackjack code

Expand Post »
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.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Steve17 is offline Offline
3 posts
since Jan 2007
Jan 17th, 2007
0

Re: Help with blackjack code

The shuffle part could be reduced by using a for loop.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 17th, 2007
0

Re: Help with blackjack code

whats a for loop srry but im not a expert at visual basic
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Steve17 is offline Offline
3 posts
since Jan 2007
Jan 19th, 2007
0

Re: Help with blackjack code

a for loop is like... :lol:

for start to end step amount
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Jan 19th, 2007
0

Re: Help with blackjack code

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!~!!
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Steve17 is offline Offline
3 posts
since Jan 2007
Jan 19th, 2007
0

Re: Help with blackjack code

We don't do homework.
Featured Poster
Reputation Points: 1536
Solved Threads: 431
Posting Expert
iamthwee is offline Offline
5,865 posts
since Aug 2005
Feb 17th, 2008
0

Re: Help with blackjack code

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.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Joni81 is offline Offline
2 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in VB.NET Forum Timeline: sample program
Next Thread in VB.NET Forum Timeline: help with VB code





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC