I believe I finished the project, but there are few bugs I don't know how to fix.
1. raise should not exceed the range bet, in my case it does.....
2. When I run out of the money it sometimes adds 200, or just gives me an error.
3. When all 5 cards revelead Let It Ride text in the button should be changed to Rebet and Raise button should disappear, and once Rebet button clicked the text turns back in to the Let it Ride, and Raise button appears.
Just like here http://free.slotsofvegas.com/let-em-ride.php
4. Could you play a bit and see if you can crash something else?
Four card poker folder is teachers folder and its kind of an example of how to do the project.
Let it ride poker folder is my folder and it has all the files.
So could you please take a loot at it Vulpes? I uploaded it to 4shared the file name is CSC 253 Casino2Newest.
Thank you!
Loading
VulpesPosted Apr 5, 2012, 6:47 PM
One last thing you could look at is clearing the textbox when Rebet is pressed. At the moment it's continuing to show the last result which I found a bit disconcerting.
Anyway, it's time now here for bed!
Prime bPosted Apr 5, 2012, 6:56 PM
Prime bPosted Apr 5, 2012, 6:41 PM
VulpesPosted Apr 5, 2012, 6:32 PM
So, including the bet, you'll get back 3 times the bet.
The bet is 300 so the total returned is 900.
Prime bPosted Apr 5, 2012, 5:57 PM
Prime bPosted Apr 5, 2012, 5:55 PM
VulpesPosted Apr 5, 2012, 5:41 PM
If you change it to this then it should work properly without interfering with anything else:
The IsStraightFlush() method should also work correctly as it feeds into the above method and I don't think anything else is affected.
Prime bPosted Apr 5, 2012, 4:58 PM
Yeah, I got some crazy cards too and it told me I lost, but since I am not really good at the cards I thought it should be that way.
I remember my teacher made test class just to test hands, and he forced it to display those test cases, but i don't remember how he did it, so maybe that's what u can do to see if the payout is correct?
VulpesPosted Apr 5, 2012, 4:19 PM
I've just downloaded the latest version and being playing around with it and the payout now seems to be working correctly no matter how many raises there are.
However, I've noticed a problem. Believe it or not, I got a straight (A, K, Q, J, 10) but it said 'I lost' !
The Hand.IsStraight() method is dependent on the cards being sorted in order to give the right answer, which they were in the original version of the game. However, it may be that the sorting aspect has been lost when porting the old game over to the new 'Casino' approach.
As you could play all night without a good hand like that coming up again, I wonder if you have a way of testing some specimen hands to make sure I'm not going mad?
If not, then I should be able to fix it by sorting the cards within the IsStraight() method.
Prime bPosted Apr 5, 2012, 3:47 PM
you can either download from website
or from link
Prime bPosted Apr 5, 2012, 2:51 PM
Prime bPosted Apr 5, 2012, 2:51 PM
Prime bPosted Apr 5, 2012, 1:56 PM
Prime bPosted Apr 5, 2012, 12:48 PM
Prime bPosted Apr 4, 2012, 6:32 PM
VulpesPosted Apr 4, 2012, 6:28 PM
int betAmount = AnteBet + RaiseBet;
If there are two raises, then RaiseBet may reflect only the first raise.
I'm too tired now to figure out how to fix this but, if you think I'm on the right lines and haven't fixed it yourself by then, I'll take another look tomorrow.
Prime bPosted Apr 4, 2012, 5:55 PM
I am sorry for confusing you, don't worry about the range, apparently it works fine, even though in the label it says the bet range is from 5 to 100, the raise can be 100, so if you raise 2 times 100, you total bet is 300, so ITS FINE, I just found out.
The only thing that doesn't work is the PAYOUT, if you go in the Help menu and click on pay out table it will tell you the payout.
And when you run out of the money game crashes for some reason.
And In the (HIDE) window , as you can see it tells you step by step what to do , it also tells you who won, could you make it so it displays the most recent winner? Because right now it just keeps all of the information.
Remember all the files we are editing are in the Let It Ride folder, everything else we inherit from the form classes.
If you have two tens or better then pay out is 1:1 , remember, so if you bet all 300 , and got tens then u should get 600 back, but in my game it gives me 200 back for some reason.
Also I uploaded the LET IT RIDE (original) game , so you can have it and, because i am not sure if you still have it.
I hope I explain well, if you have any questions ask, I am refreshing the forum like CRAZY!!!
The game to refresh your memory
http://free.slotsofvegas.com/let-em-ride.php
VulpesPosted Apr 4, 2012, 5:39 PM
Prime bPosted Apr 4, 2012, 3:19 PM
Prime bPosted Apr 4, 2012, 3:18 PM
Prime bPosted Apr 4, 2012, 3:16 PM
Prime bPosted Apr 4, 2012, 3:14 PM