MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides  
Homepage Register FAQ Members Mark Forums Read Advertise Marketplace FPSowned


Go Back   MMOwned - World of Warcraft Exploits, Hacks, Bots and Guides > Programming > Programming section > VB
Reload this Page [Guide] Visual Basic 2008 - how to program the game "Black Jack"
VB Discussions about VB programming

Reply
 
LinkBack Thread Tools
[Guide] Visual Basic 2008 - how to program the game "Black Jack"
(#1)
Old
Caroe's Avatar
Caroe is Offline
Master Sergeant
Rep Power: 2
Reputation: 14
Caroe is on a distinguished road
 
Posts: 73
Join Date: Jul 2007
Location: H4x0r W0r|d
Legendary [Guide] Visual Basic 2008 - how to program the game "Black Jack" - 05-11-2008

Hello, lets begin, shall we ?.

lets do it Step by Step

1) Make form that is pretty small where u make 5 button, call them "Very Easy, Easy, Medium, Hard, and Very Hard"
2) Now add 5 new Forms
3) In form2 call it "Black Jack (Very Easy)"
4) Make 3 labels.
5) Call the first "Limit 21"
6) The second should be "Your Cards: 0"
7) and the Third will be Size 20 with no text.
8) put then so the the "limit 21" is at the left top corner.
9) "Your Cards: 0" right under
10) and the empty one with size 20 just right of them.
11) Make 2 buttons
12) Call one of them "Draw Card" and the other one "End Game"
13) Double Click on "Draw Card" so that u can add a code to it.
14) in it write:
Code:
Dim TheRandomClass As New Random
        Dim i As Integer = 0
        i = TheRandomClass.Next(1, 3)
        Label3.Text = i.ToString
        YourCards += i
        Label2.Text = "Your Cards: " + YourCards.ToString
        If YourCards > 21 Then
            MsgBox("You Lost!", MsgBoxStyle.Critical, "Error")
            YourCards = 0
            Label3.Text = ""
            Label2.Text = "Your Cards: 0"
        End If
        If YourCards = 21 Then
            MsgBox("You Won!", MsgBoxStyle.Information, "Won")
            YourCards = 0
            Label3.Text = ""
            Label2.Text = "Your Cards: 0"
        End If
15) Now at the top, just under "Public Class Form2" write:
Code:
Public YourCards As Integer = 0
16) Now go to the designer and double click the button "End Game" and write:
Code:
Form1.Show()
Me.Close()
17) Now ur done with the very easy.
18) Now do the same with the other 4 forms, but call them Easy, Medium, Hard and Very Hard instead of Very Easy.
19) In the other forms use the same codes, but change:
Code:
i = TheRandomClass.Next(1, 3)
20) in Easy change the "3" to 6, in Medium to 11, in Hard to 16, and in Very Hard to 22.

Enjoy !
Reply With Quote

Donate to remove ads.
(#2)
Old
~Jagris's Avatar
~Jagris is Offline
Contributor
Rep Power: 2
Reputation: 114
~Jagris will become famous soon enough~Jagris will become famous soon enough
 
Posts: 878
Join Date: Apr 2007
Location: PWNING Guitar Hero!!
05-12-2008

Woot This Will Help On My Card Counting Wooooooo




I am a hardcore gamer add me, get owned, QQ. I am back *****s I have my xbox back now go get owned!
Reply With Quote
(#3)
Old
Caroe's Avatar
Caroe is Offline
Master Sergeant
Rep Power: 2
Reputation: 14
Caroe is on a distinguished road
 
Posts: 73
Join Date: Jul 2007
Location: H4x0r W0r|d
05-17-2008

glad u like it
Reply With Quote
(#4)
Old
C-Death is Offline
Banned
Rep Power: 0
Reputation: 134
C-Death will become famous soon enoughC-Death will become famous soon enough
 
Posts: 514
Join Date: Jun 2007
06-01-2008

I like this guide. You seem to know what you are doing. from me.
Reply With Quote
(#5)
Old
Cursed's Avatar
Cursed is Offline
Contributor
Rep Power: 3
Reputation: 230
Cursed has a spectacular aura aboutCursed has a spectacular aura aboutCursed has a spectacular aura about
 
Posts: 1,178
Join Date: Jun 2007
Location: Germany
06-01-2008

2x


Reply With Quote
(#6)
Old
Fireking300's Avatar
Fireking300 is Offline
Master Sergeant
Rep Power: 2
Reputation: 7
Fireking300 is an unknown quantity at this point
 
Posts: 78
Join Date: Jun 2007
Location: Texas
08-07-2008

Nice Programming + 2 rep from me!
Reply With Quote
(#7)
Old
Zeroi9's Avatar
Zeroi9 is Offline
Contributor
Rep Power: 2
Reputation: 204
Zeroi9 has a spectacular aura aboutZeroi9 has a spectacular aura aboutZeroi9 has a spectacular aura about
 
Posts: 383
Join Date: Aug 2008
Location: in da shawtbawx!
09-28-2008

I saw this post on another forum?


Reply With Quote
(#8)
Old
Y R U A NUB ? is Offline
Knight-Lieutenant
Rep Power: 2
Reputation: 64
Y R U A NUB ? will become famous soon enough
 
Posts: 227
Join Date: Nov 2007
09-29-2008

Quote:
Originally Posted by Gaaalenskap View Post
I saw this post on another forum?
That's because it's not his tutorial.


[Flying Piggy] << Awesome flying mount
Reply With Quote
(#9)
Old
Caroe's Avatar
Caroe is Offline
Master Sergeant
Rep Power: 2
Reputation: 14
Caroe is on a distinguished road
 
Posts: 73
Join Date: Jul 2007
Location: H4x0r W0r|d
10-15-2008

its exactly peoples like u that made me stop on VB-programming posts on MMOwned.. u guys says "he didnt make it himself" and well, i saw a video on youtube, and learned it. then i changed / added things, and then i shared with u guys. now i just hold my things for my self, becourse it doesnt even make u guys glad to learn these things . u just blame people for leeching.. and .. I DID NOT LEECH !
Reply With Quote
(#10)
Old
Zeroi9's Avatar
Zeroi9 is Offline
Contributor
Rep Power: 2
Reputation: 204
Zeroi9 has a spectacular aura aboutZeroi9 has a spectacular aura aboutZeroi9 has a spectacular aura about
 
Posts: 383
Join Date: Aug 2008
Location: in da shawtbawx!
4 Weeks Ago

Quote:
Originally Posted by Caroe View Post
its exactly peoples like u that made me stop on VB-programming posts on MMOwned.. u guys says "he didnt make it himself" and well, i saw a video on youtube, and learned it. then i changed / added things, and then i shared with u guys. now i just hold my things for my self, becourse it doesnt even make u guys glad to learn these things . u just blame people for leeching.. and .. I DID NOT LEECH !
Actually I just stated it.
I did not blame you for leeching, and y ou got many good replies and one question.
:S


Reply With Quote
(#11)
Old
Caroe's Avatar
Caroe is Offline
Master Sergeant
Rep Power: 2
Reputation: 14
Caroe is on a distinguished road
 
Posts: 73
Join Date: Jul 2007
Location: H4x0r W0r|d
3 Weeks Ago

i didnt blame you , i blamed Y R U A NUB?..
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On



Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vBulletin Skin developed by: vBStyles.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361