Poker madness!!

I am creating a 'simple' poker Texas Hold 'em game.  Really a quiz game.
And I wanted to simulate randomness as best as I could when dealing the cards.
The optimum thing to do would be to actually calculate each hand when the cards are randomply displayed... but that's more complicated than making a full chess engine like Shredder.   So I have a kind of pseudo reandomness to the cards dealt.
Well, even that is really tricky.
Going bonkers with the different suits and whether the cards are player one or player two and the flops and the turns.
I don't even know why I am wasting my time.  Now it is just a matter of can I figure this out or not.
No user is even gonig to care.  But I need to go take a walk or a jog.
Arrrgggh!!!!
ANDY

It a lot harder than it seems....  
It seems simple.  But its not.   Lets say I stick 52 cards in an mutable array.
I generate a nonrepeating random number and pull out one card at a time....
Sure its easy to pull the cards out... But calculating anything is a different story.
It is literally harder than a chess engine.  I think there are more possibilites.
You would need to use heuristics or something that I am not getting into...  So I 'pseudo-randomized it' but even that is complicated.
I am talking about Texas-Hold 'em.
Anyway, best of luck.  I pretty much have it now, but it is frying my brain.

Similar Messages

  • Poker room project-idea

    Poker and Black Jack with card counting strategies seems to be all
    about math/probability theory/decision theory. I heard a professional
    poker player reason and that's where I got the idea. If you could just
    get the data into the computer the rest would just be decision theory
    and computer programming. I think the big advantage would be a much
    greater accuracy in the probabilistic calculations. You would need to
    sample the screen directly in the computer or via some high resolution
    web-camera. Then translate the characters and symbols through pattern
    recognition and ocr into computer digestable data. You would also need
    to control the mouse by either an embedded system, which comunicates
    with the PC, or by connecting one USB-port (or older mouse-port) to
    another USB-port and let some software act as a mouse. The same thing
    goes for the keyboard.
    So the computer samples the screen to see what's going on, makes a
    decision and then either moves the mouse to the right region and
    clicks or types something and ends with a return-character. When Deep
    Blue has finally made it's way into the poker and black jack
    rooms. Human players can bite the dust.

    I suspect the algorithm for bluffing is going to be rather difficult.
    And note of course that this won't work live. Casinos specifically disallow computers.

  • Poker Game

    This is the rule of the game :
    The player is dealt two cards, the 'hole'. Five 'community' cards are then dealt. The player hand is then the best possible five card hand that can be made with the two hole cards and the five community cards.
    Is anyone here have the scripts ?please help me.....

    Try poker-eval pretty much covers what you want and is fast. But it is written in C has almost zero documentation and is a bit of a pain to get set up as a DLL.
    Alternatively there is a C# project on codesource that has ported it from C. It's a bit slower but easier to get working.
    Additionally there are many Java progs around (several on SourceForge) these tend to be a lot slower than poker-eval. According to what I've read the reason that poker-eval is faster is that it uses large lookup tables for evaluating and comparing hands rather than calculating on the fly such things as the best 5 card hand from the 7 cards provided.

  • Using the In port.vi and Out port.vi in LabVIEW access my the Cards(Home made)

    Hi Everyone,
    I have got the Cards (home made 8 bit and 16 bit ) plug in at slot ISA my PC (I am using the commands inport and outport (addressed with 318-31A Hex) in C language to access very good).This now,I want to use LabVIEW language to access data directly to Port at my the Cards. In LabVIEW, Can I access data to port using the In port.vi and Out port.vi located in the Advance?
    My English is poor, you don't laugh when you read it.
    Thank you a lot.

    SachaE wrote:
    > LabVIEW 7.0 cannot use the built-in In/Out Port VIs with a 32-bit
    > address. Instead, you will have to use the versions of these VIs found
    > in previous versions of LabVIEW.
    Are you talking about physical memory access here? If so that is
    something entirely different. The Intel x86 architecture uses a separate
    IO address range which is entirely separate from memory space.
    And at least up to the first Pentium models it was definitely never
    possible to address more than 16 bits for IO address space.
    This of course has gotten a little more complicated nowadays with many
    PCI boards being actually mapped into memory address space instead of IO
    address space. So eventhough a PCI board is more like an IO device it
    often is accessed in the memory space.
    > Actually, the In Port and Out Port VIs are intended for 16-bit port
    > I/O and not for writing to arbitrary addresses in memory. For this
    > reason, writing to 32-bit addresses never should have been allowed.
    I think the VIs to access physical memory addresses were different than
    the ones to access IO addresses. And yes it is definitely not a good
    idea to have an application poke into physical memory as it could
    completely screw the system to the point where you couldn't start it
    anymore. Also IO devices mapped into memory address space are almost
    always typically plug and play devices, so their address is not really
    fixed and you need to do quite some more work on OS level to enumerate
    your hardware and find the resources used before trying to access it.
    This is something not really suited to try to do in LabVIEW and
    therefore should be at least implemented as DLL but in fact anything but
    a device driver is a very bad kludge.
    > One possible work-around would be to use NI-VISA to perform
    > register-level programming. NI-VISA gives you access to any PXI/PCI
    > board, not only NI boards, and can be used to access the board's
    > registers.
    >
    > http://zone.ni.com/devzone/conceptd.nsf/webmain/ADF3152837E2B4A486256B5600642AC7?opendocument
    Thanks for this. Didn't now this existed in NI-VISA. Will check it out.
    Rolf Kalbermatter
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • Geo location poker

    hi
    verizon gave me a good deal so i switched from optimum.  trouble is i use geo location software on my pc to play poker online.  never had a problem but i do now after switching to verizon.  the original modem/router would not let me create a guest account, (the poker sites need 2 wifi signals to detect i am in nj).  so i ordered the quantum modem/router ($4 more a month) and created my guest account, no joy.  called verizon they said it has nothing to do with them.  asked them to change my ip address no good.  changed firewall setting in router no good.  the poker sites said a lot of verizon customers have issues with geo location when they didnt before with other cable companies.  i was mad cause i had to pay $4 more for the option to have 2 wifi signals.  i am furious that i can not fix this, verizon claims its not them, how are 4 poker sites saying its a verizon problem but verizon says its not???  nothing changed on my pc accept for the router/modem.  i'm sure i'm not the only one with this problem, and wish someone who had it fixed could guide me.  right now the verizon deal is not lookin too good.  i am losing money (by not being able to play poker online).  7 days left if this does not get fixed back to optimum for me.

    A WAN (wide area network) IP address is the public, routable IP address.  FiOS users get one WAN IP address.  The router shares that IP address with the LAN (local area network) devices by using a private, none routable address space.  Private LAN IP addresses are never used outside of the LAN.  As TelcoGuru pointed out, 192.168.x.x address are private addresses.  No systems outside of the LAN know or care about these addresses.  Changing them will have no effect on anything outside the LAN.
    With the FiOS quantum router, everything uses the single WAN IP address.  The router hands out private IP addresses to devices on the Ethernet, WiFi and Guest WiFi, but those are not visible outside of your home.
    It's possible that Optimum assigned two WAN IP addresses to their customer's routers, one for the private LAN space and one for Guest WiFi.  Was your Guest WiFi something that you managed and controlled or was it was available to any Optimum user as a "hot spot" without your control?  If it was the later, chances are very good that it was using a completely separate WAN IP address.  If that's the case, that's probably why you could use it as a 2nd network for geo location.
    The crux of the problem is the poker systems folks probably don't give out too much info about how geo location works in order to prevent people from trying to circumvent it.  My guess is they want to see two completely different WiFi networks and public WAN IP addresses.  You won't get that with a Verizon router and guest network.
    This is really an issue with how the poker system is setup and is not a Verizon issue.  If you can find out what the poker system wants to see, that would help.
    Good Luck.
    If a forum member gives an answer you like, give them the Kudos they deserve. If a member gives you the answer to your question, mark the answer as Accepted Solution so others can see the solution to the problem.

  • N97 Million Dollar Poker problem.

    Ok so not really a nokia issue but I am still up a certain creek without a paddle.
    Installed it, played a few times then it froze... to the extent you just couldnt do anything with it apart from uninstall it from the phone. I have then since been trying to get it re-downloaded from the N-Gage bit of the nokia pages and I will have to pay for it again. Ok granted paying £4 was ok once but it was that good a game I want to pay for it twice. 
    Anyone know who I would need to contct at Nokia who could figure out a way I could reinstall it again...
    Yeah yeah I know I should have backed up the phone but I've only had a week and no-one backs their new phone up that soon!
    Any help would be grand thanks
    Heidi:smiley mad:

    Ok I didnt word the last one very well...
    How would I re-download the million dollar poker software I have already bought once which froze and I needed to  uninstall it?
    It's ok but not worth paying for it twice!
    Thanks
    Heidi

  • HT5312 I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? th

    I DO remember them but Apple chose to put them in Japanese and I can not change the language on Manage my Apple ID so I do not know if I made an error ,it threw me off , it was the wrong question Where did you fly to on your first Aiplane trip ? then I was unable to enter until 8 hours then called Apple Japan 4 times each time threy asked me would you like to speak with an English speaker,I said yes then they told me sorry today is Sunday no English speakers ,but they refused to speak Japanese, then I called 5th time and a kind guy could speak English we were on 1and 1/2 hours he got me to log in but the reset key chain could not be completed still pending.
    He said do not mess with that ! then I got a text from somewhere to reset 4 pins suddenly it was very strange I said to him that I got this pin this morning but it said you can use maximum 3 hours it had a UK number and I told him I do not like this and will not enter the code he said do not do it if it is from the UK and then I said to him ok you did a lot to help but we can not go any further ! and we cut of I went back to my computer to re do the ID but I found everything a mess so I call and a stupid sounding Japanese women with a squeaky voice came on I was calm at first and they want your phone number your IMEI number your iPhone serial number date of birth Address email address it takes 10 munutes to check then they ask what are you caling about so I try to explain my keychain is broken or problems with language security questions and can not change my pasword because the security question have failed me so it is ONE BIG HEADACHE AND I START I GET STRESSED she says Do want an ENGLISH speaker ,I say yes ,that guy i talked to earlier but I never got his name and first time I ever talked to him but they said he is not here so I said ok and then she said today is sunday so call back in the morning ,I said ,well ok in Japanese but they make you feel stupid because they do not want to speak Jap@anese with none natives and they are to busy,And they feel that I should not bother them ,then I say that Apple Japan is trying to refuse Apple foreign customers and then she wants to hang up and ask me to visit the shop ,but they are the same I have a very bad time with Apple Japan since they do not discuss software problems or security with customer meaning if you have a problem they ask you to come on a time 20 minutes max so they do hardware test and say you phone is fine then I say no I can not reset my ID they say you must call call centre so I am going around in circles ,When I call English it is usually Australia so if my problem is in Japan surely if do not want me to talk to them in Japanese and they ask me to call Australia but every time my call charge is expensive after asking them is this free because I have Apple care they say yes but when the call goes to Australia 0120 277 535 it might change to paid call so I call then I have to ask is this charging they say we can not give you that information ! so what can I do I have have been at the computer and phone all day on my day off work and in tre week I am so busy and can not use my phone I can not work without it ,this new technology for you ,they can not cope with the fact that the customer have problems yet they do not want to deal with us because they can not solve it and so it shows them to be useless they like to walk around in their cool tee shirts and retro shop but when it comes to functionality we are unwelcome they got the money so do not return because apple is perfect that nothing should go wrong .
    But it does somehow my English security answers do not work on a Japanese Question especialy if I did not choose that question I set  up the multiple choice In English and wrote the answers in English or Roman and set them langauge preferences in English, do you really think you can correctly write english name or word in Japanese they write a police patrol car  pato caa パトカア they do not have r and l .So it is my choice to make my security easy for me and as difficult for others to hack.But they also have patororoo choo meaning ' now patrolling ' so why they have pato caa patrol car and patoro patrol and have thousands of Chinese words kanji they can find patrol.
    I am getting off the topic but I am at a loss to fix this problem when they hold the keys and i have all the info to verify my ID.

    You have to enter the Apple ID and password. You are running into the Activation Lock
    iCloud: Find My iPhone Activation Lock in iOS 7
    Is there a way to find my Apple ID Name if I can't remember it?
    Yes. Visit My Apple ID and click Find your Apple ID. See Finding your Apple ID if you'd like more information.
    How do I change or recover a forgotten Apple ID Password?
    If you've forgotten your Apple ID Password or want to change it, go to My Apple ID and follow the instructions. SeeChanging your Apple ID password if you'd like more information.

  • Is There any API in receivables payment will made against closed invoices ?

    Hi ALL,
    i have requirement as below.
    i am doing AR Invoice Data Migration for Instance 11.5.5 (as a Source Instance) to the new instance R12 (as a target instance).
    Both open and closed invoices will have to be migrated from 11.5.5 to R12 to provide the drill down facility for audit purpose.
    To meet the above requirement all the open and closed invoice will be picked up from 11.5.5 ; and imported into R12..
    Subsequently, full payment will be made in R12 against all closed invoices in 11.5.5 to close those invoices by using any APIs?
    can some one explain is there any API in receivables payment will made against closed invoices.
    Thanks,
    VSR.

    Hi,
    Can you be clear on your question: You want any API to make payment against closed invoices?
    To me, You are making things complex. We can achieve the Migration of Closed invoices using following two procedures:
    Procedure: 1
    Ask Functional Guy to create a Transaction Type 'Closed Invoices' with Open to Receivables Flag not checked. +(You can uncheck Post to GL flag also, if required depending on your migration strategy)+. Status at Transaction Type if taken as 'Closed' it will be appropriate.
    Invoices migrated using this Transaction Type shall not be shown as Outstanding but will be useful for Audit.
    Procedure: 2
    Consider the amount due Original of Closed Invoices and migrate them with the amount as Amount due remaining.
    While migrating populate Receipt Method,Payment Method and Instruments useful for Automatic Receipts.
    Once Create Automatic Receipts Program is run, it will close all these invoices. Note: We require dummy bank here which points to a Clearing account.
    Automatic Receipts program is also an API.
    In the above 2 ways, we are acheiving the Goal by using Functional knowledge rather than Technical. And I think following Functional way is better and less time consuming.
    Please discuss with your Functional consultant if required. You can succeed.
    Regards,
    Sridhar

  • How can i get Background Jobs list which is made me?

    I created background job using JOB_OPEN and SUBMIT and JOB_CLOSE.
    I need to Background Job list which is made me..
    Do u know any function or logic?
    plz~

    [BP_JOBVARIANT_OVERVIEW|http://help.sap.com/saphelp_45b/helpdata/en/fa/096ccb543b11d1898e0000e8322d00/frameset.htm]
    BP_JOBLOG_READ

  • My wife and I have made many purchases over several years on seperate accounts, how could we join them into one account, without losing everything?

    My wife and I have made many purchases over several years on seperate accounts, how could we join them into one account, without losing everything? We both use Iphone 5's and share an Imac at home.

    Purchases using one Apple ID cannot be merged or transferred to another Apple ID. Purchases are forever tied to that Apple ID used. You have to decide which Apple you want to use for purchases and stick to that Apple ID so that you can share: Settings > iTunes & App Stores > Apple ID : > use the same Apple ID here to share purchases.

  • Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when i enter account name and password for one account, i cannot access other accounts, because windows saves username

    Hi. I am using a time capsule for few PC s. I have made 5 different account to access time capsule. but in windows when I enter account name and password for one account, i cannot access other accounts, because windows saves username. how can i prevent this from happenning. I really need to access all my accounts and dont want it to save automaticlly.

    Why have 5 accounts if you need to access all of them.. just have one account?
    Sorry I cannot follow why you would even use the PC to control the Time Capsule. Apple have not kept the Windows version of the utility up to date.. so they keep making it harder and harder to run windows with apple routers.

  • My iTunes downloads were made using my old gmail address.  I had to quit using this email address as it got hacked.  I created a new gmail account.  How can I get my iTunes downloads into the new gmail account?

    My iTunes downloads were made using my old gmail address.  I had to quit using this address  as it got hacked.  How do I get my iTunes downloads into my new iTunes account that was created with a new gmail address?  In my old iTunes account (with the old gmail address,  I can't 'update' my email address or even 'add an alternate address' as I had already created this gmail account and inputting the new address into iTunes gives me the 'pop-up' that 'this account is already in use.'   Advice please!

    Good luck. It took me weeks to fix this when I had to do it. Your old ID branches out in lots of places. You may have to delete app and get them again, at least that is what Apple told me. Plus, all of your settings on your iPad that required any ID, will have to be changed. My old ID kept showing up in different places for weeks. Changing it on Apple.com is just the beginning.

  • I made my own apple id because my family was getting my texts from other people. I want to add my device to my dads find my iphone app on his icloud but can't figure out how, without having to log in to his apple id on my phone. how do i add my device?

    I made my own Apple ID because when I was logged into my dad's my family was receiving my texts from other people. I want to add my device to my dad's "find my iphone" app but without signing into his Apple ID on my phone because that was causing them to get my texts. I was told by Apple I could add my device to his by signing into icloud.com but there is no option that I can find to add my device. And I don't want to log back in to his.. Any ideas???

    Also when I apply the safety copy it only imports the app the phones have had in common, so none of the apps that only the iPhone 4 had doesn't come in, only the ones I and the iPhone 4 has had in common. So you say the only way I can use the Apple ID to download on the old iPhone 4 is if I delete the apps that are in the phone and then download them again? How will that change the ID to download/update from. Won't it still have mine to update/download from?

  • List view web part not reflecting changes made to list view in SharePoint Designer

    Dear All,
    When adding a list view web part containing a view modified in SharePoint designer (e.g. conditional formatting applied, or group headers modified) I'm finding that the changes made in SPD are not reflected in the web part. 
    For example, I go into SPD edit a view, and the view appears correctly when I go back into SharePoint, however when I link to the view within a list view web part it results in losing the changes made in SPD. 
    Becasue it's a publishing page I'm unable to edit the contents of the web part in SPD.
    I'm sure this is expected behavior but how do I get around this?
    Thnaks,
    MDB

    Try below
    http://stackoverflow.com/questions/19533998/sharepoint-designer-doesnt-show-anything-in-list-and-libraries-link
    http://social.msdn.microsoft.com/Forums/sharepoint/en-US/a63a1894-6b1d-420a-95dd-b6c546eab34d/updates-made-to-sharepoint-designer-2010-workflow-do-not-show-up-on-the-server?forum=sharepointcustomizationprevious
    http://stackoverflow.com/questions/5959521/sharepoint-designer-saves-the-changes-but-it-does-not-affect
    http://social.technet.microsoft.com/Forums/en-US/1e9a8c27-bbc5-4a6f-8daf-4b243182f543/changes-in-sharepoint-designer-2010-not-showing-in-sharepoint-server-2010-page?forum=sharepointadminprevious

  • ITunes 10.0.1 "the network connection could not be made"

    This was not a problem for me on 10.0. I can no longer update my podcasts because I get this error message
    "There was a problem downloading (podcast name) the network connection could not be made"
    so first I ran diagnostics for the network connection and it said that it could not make a secure connection to the itunes store. I clicked help and it said to add a rule to the windows firewall (even though one already existed), I did that and now its green but I still get the same error message. Here is the information from the diagnostics.
    Microsoft Windows 7 x64 Ultimate Edition (Build 7600)
    iTunes 10.0.1.22
    QuickTime 7.6.8
    FairPlay 1.9.16
    Apple Application Support 1.3.2
    iPod Updater Library 10.0d2
    CD Driver 2.2.0.1
    CD Driver DLL 2.1.1.1
    Apple Mobile Device 3.2.0.47
    Apple Mobile Device Driver 1.49.0.0
    Bonjour 2.0.3.0 (214.3)
    Gracenote SDK 1.7.1.420
    Gracenote MusicID 1.7.1.78
    Gracenote Submit 1.7.1.106
    iTunes Serial Number 0637C6B672852BC1
    Current user is not an administrator.
    The current local date and time is 2010-09-28 09:37:04.
    iTunes is not running in safe mode.
    WebKit accelerated compositing is enabled.
    HDCP is supported.
    Video Display Information
    NVIDIA, NVIDIA GeForce GTX 260M
    ** External Plug-ins Information **
    No external plug-ins installed.
    iPodService 10.0.1.22 is currently running.
    iTunesHelper is currently not running.
    Apple Mobile Device service 3.2.0.0 is currently running.
    ** Network Connectivity Tests **
    Network Adapter Information
    Adapter Name: {A05144D0-DC62-4367-9AEA-8537EF0D39C9}
    Description: Intel(R) 82577LC Gigabit Network Connection
    IP Address: none of your business
    Subnet Mask: 255.255.255.0
    Default Gateway: none of your business
    DHCP Enabled: Yes
    DHCP Server: none of your business
    Lease Obtained: Tue Sep 28 09:02:30 2010
    Lease Expires: Thu Sep 30 09:02:30 2010
    DNS Servers: none of your business
    Adapter Name: {E8E377A7-4E43-4F3C-9BE3-9218319096C5}
    Description: VirtualBox Host-Only Ethernet Adapter
    IP Address: none of your business
    Subnet Mask: 255.255.255.0
    Default Gateway: 0.0.0.0
    DHCP Enabled: No
    DHCP Server:
    Lease Obtained: Thu Jan 01 09:00:00 1970
    Lease Expires: Thu Jan 01 09:00:00 1970
    DNS Servers:
    Active Connection: LAN Connection
    Connected: Yes
    Online: Yes
    Using Modem: No
    Using LAN: Yes
    Using Proxy: No
    SSL 3.0 Support: Enabled
    TLS 1.0 Support: Enabled
    Firewall Information
    Windows Firewall is on.
    iTunes is NOT enabled in Windows Firewall.
    Connection attempt to Apple web site was successful.
    Connection attempt to browsing iTunes Store was successful.
    Connection attempt to purchasing from iTunes Store was successful.
    Connection attempt to iPhone activation server was successful.
    Connection attempt to firmware update server was successful.
    Last successful store access was 2010-09-28 09:34:16.
    I modified it slightly because my IP address is not necessary for troubleshooting this issue. is anyone else having the same problem? how can i fix this

    Did you get anywhere with this? I'm getting the same error when I try to use Home Sharing. It worked through all the 9.x versions, but with 10.0.1, I can't even home share between two identical MacBooks. I get the above error when I try to copy a song / video / etc. from one library to another.

Maybe you are looking for

  • IPod Nano (6th gen) and Technogym treadmill

    Hi, I have a 6th gen iPod Nano and I have been using it with nike+ for a while. In particular, I have been using the transmitter plugged in the ipod and the sensor in my nike shoe to track my running data and eventually upload it to nikeplus.com. Hen

  • Daniel_K leaving for good. Thanks Creati

    http://forums.creative.com/creativel...&thread.id=334 He posted his farewell not too long ago. I will miss him dearly as he was the only one that gave many of us hope. Especially those of us that bought Creative products with low incomes / little alt

  • Why does the highlighting/underlining feature only select parts of words?

    Is there a reason why in certain PDF's I can only select parts of words? Before in the same document I was able to select, underline, highlight, etc., with no problem. Has there been an update or change to the software that causes this to happen? Can

  • Palm TX won't connect to new Windows 7 laptop

    I've been trying to get my TX to connect to a new Toshiba laptop.  I first tried to hotsync via USB and discovered on this forum why that wouldn't work - no 64-bit USB driver, apparently.  I read as much as I could find here, and tried everything I c

  • Sharepoint Blog Post & Comments Export

    I have a blog with some posts and each post having some comments. I am moving the post & Comment list from the site to a  subsite using Content & Structure. The Post & Comment lists are moved successfully but in the subsite it shows 0 comments for al