Video Poker

Discussion in 'GBAtemp & Scene News' started by zatelli, Feb 21, 2007.

Feb 21, 2007

Video Poker by zatelli at 3:46 PM (1,077 Views / 0 Likes) 5 replies

  1. zatelli
    OP

    Member zatelli GBAtemp Advanced Fan

    Joined:
    Jun 27, 2003
    Messages:
    540
    Location:
    Always on the move...
    Country:
    France







    Video Poker










    Here's yet another game from developer Robert Durbin, this time it's video poker.


    [​IMG]

    [​IMG] Video Poker



     
  2. adgloride

    Member adgloride Its A Wii Wario

    Joined:
    Apr 2, 2003
    Messages:
    2,261
    Country:
    United Kingdom
    This has the makings of a good game. The cards turning over doesn't look realistic and it slows the game down a little. Maybe you could program it for them to just flip over. You could get the sounds for this game from the solitaire game in windows.
     
  3. rdurbin

    Member rdurbin GBAtemp Fan

    Joined:
    Sep 13, 2006
    Messages:
    472
    Location:
    US
    Country:
    United States
    ill prob replace the card flip thing when i get a card flip sound. I kinda liked the delay flipping as makes it more suspensful than just the cards appearing, but i can understand how it can get annoying when you play lots of hands. I was thinking of making a multi hand version of this game. basically you play your one hand, than hold your cards like normal. Whats different is say you hold 3 cards and draw 2 more, it would draw 2 more, 3 times, increasing your chance of winning, of course if you play 3 hands, it would triple your bet and if your unlucky you can lose all 3 hands. What do you guys think?
     
  4. teapea

    Newcomer teapea Advanced Member

    Joined:
    Oct 9, 2006
    Messages:
    92
    Country:
    United Kingdom
    how good is the random number generator?

    i've written video poker for many different languages and to get a fair distribution of likelyhood of cards can get extremely difficult.

    any stats?
     
  5. rdurbin

    Member rdurbin GBAtemp Fan

    Joined:
    Sep 13, 2006
    Messages:
    472
    Location:
    US
    Country:
    United States
    well it uses a "real" 52 card deck, it seems pretty "random" to me, of course when it comes to computers nothing is truly random. if your curious on how it works is basically what i do is have it draw a number from 1 to 52, when the number is picked its marked off in an array. if the number ends up being picked again, it simply increments the number and repeats this til it picks a number not picked. this process is repeated til all 52 numbers are picked. this is the same process used in my deal or no deal game and my card sharks game. press your luck doesnt do this as a repeated number will not matter, since the board is random. 1 to 13 is clubs, 14 to 26 is diamonds, 27 to 39 is hearts and 40 to 52 is spades. its pretty simple really. i may adds some odds in my next version. lets say you get two queens and you hold the queens, it will report the odds of getting 3 of a kind, 4 of a kind, full house, etc. may be a lil tough but i think it would be cool

    as for actual stats i havent recorded any games but it seems to be pretty fair, i do just as well or bad as real video poker machines. I could prob write a server program that will log all my games and can record the odds, shouldnt be that tough...
     
  6. teapea

    Newcomer teapea Advanced Member

    Joined:
    Oct 9, 2006
    Messages:
    92
    Country:
    United Kingdom
    yeah, it's how you get the number between 1 and 52 though which is the key.

    i've had to do a lot of mathmatical transforms on things before now to ensure that the distribution of the numbers 1-52 are equal. you *may* find that if you run this part of the code round a loop for a day or so, and count how many times is choses each number, you'll find a disproportianate amount of the number 1 and number 52.

    as a programmer who spent 4 years gaininig a masters degree in maths, it's a very difficult thing to achieve!
     

Share This Page