Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27254

VB Slot machine

$
0
0
I have everything working in my code except for the figuring of the loser. What I want to do is the only way to win is if you match all three reels which i used this for the code
If v1 = v2 And v2 = v3 And v3 = v1 Then

WinnerLabel.Text = ("You win one free rental") this one works exactly how I thought it would.

but to figure the loser which means if all three dont match I have this
Else
If v1 <> v2 And v2 <> v3 And v3 <> v1 Then
LoserLabel.Text = ("Sorry Try again Next Time")
This code works for only when each reel has a different image. If two images have the same reel the program returns nothing but I want it to return the message above .

Let me know if there is something more needed here.

Viewing all articles
Browse latest Browse all 27254

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>