Basic .asp help please
I am trying to make a poker game with .asp and am having some problems. As of right now I have (with some help) a page with a DEAL button, once pressed it displays 5 random cards. I also have set a value to each card as Blackjack would, it then adds each value and gives a total at the bottom of the screen. Here is a screenshot incase anyone's lost already.
http://artsapimp.8m.com/pokerpicture.htm
I am trying to make it work a little different.
1. Push Deal 1st time - 2 cards are delt
2. Push Deal 2nd time - 3 more cards, different row.
3. Push Deal 3rd time - 4th card on same row.
4. Push Deal 4th time - 5th card is delt.
5. Where it shows Total : 34 it will show what hand you have (2 pair, straight, full house, etc.).
I know it's a lot of work, but I'm willing to take the time to do it if someone will tell me what I need to do. I have 2 books here (1 beginners, 1 advanced) for asp so as long as someone tells me what I need to include I may be able to find it in there somewhere. Thanks.
Here is the source code as of right now.
http://artsapimp.8m.com/poker.htm
------------------
Lloyd Hassell posted this at 04:38 — 17th May 2000.
They have: 231 posts
Joined: Feb 2000
You need to create a variable that acts as a counter. This can keep track of the number of cards to display. Then use an IF statement to display the different card variations according to the variable setting.
:: Lloyd Hassell :: http://www14.brinkster.com/lloydh ::
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.