helppokersource - Support: sr #2469, How to compute odds with opponents...

 
 
Show feedback again

sr #2469: How to compute odds with opponents unknow hole card?

Submitted by:  None
Submitted on:  Wed 16 Dec 2009 07:07:00 PM UTC  
 
Category: poker-evalPriority: 5 - Normal
Severity: 1 - WishStatus: None
Privacy: PublicAssigned to: None
Originator Email: -unavailable-Open/Closed: Open
Operating System: GNU/LinuxEffort: 0.00

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 05 Jul 2010 06:12:39 AM UTC, comment #1:

I have included my modified fish.c program that does this.

feel free to use it as you wish.

I added the "-o" flag.

If you do not use it, it calculates your odds of having a specific type of hand. Pair, Trips, Straight, etc.

If you use the "-o" option, it computes the odds of one of the opponents on the table having a specific type of hand.

So, if you type:

fish -o 7 -d ac -d ks 3c 4c jc kd 2c

You are specifying that your hold cards of Ac and Ks are deleted when the odds are calculated. the -o 7 specifies there are 7 opponents playing at the table.

Note: This code requires the use of the c function pow. You need to modify the Makefile to have the following:

fish$(EXEEXT): $(fish_OBJECTS) $(fish_DEPENDENCIES)
@rm -f fish$(EXEEXT)
$(LINK) $(fish_LDFLAGS) $(fish_OBJECTS) $(fish_LDADD) $(LIBS) -lm

Notice the -lm ??? this will link in the math library from which you can get the pow function.

Also, copy your fish.c to fish.c.backup to make sure you can get it back when you need it.

Now copy my fish.c over the top of your fish.c

Now you should ( I hope ) be able to do a make.

When you get done, use the code and make sure it works.

To make sure you are running the code you just compiled, type:

./fish -o 7 -d ac -d ks 3c 4c jc kd 2c

If this works, I suggest you copy fish to your ~/bin directory.

One gotcha is you have to do:

mkdir ~/bin/.libs

cp ./.libs/fish ~/bin/.libs
cp ./.libs/lt-fish ~/bin.libs

pain in the butt that took me a while to figure out.

For your information the file ~/fish is a wrapper.
The file ~/.libs/fish is the executable.

I don't know what the file ~/.libs/lt-fish is, but things don't work if it isn't there.

have fun

(file #9434)

Elmer Fittery <efittery>
Wed 16 Dec 2009 07:07:00 PM UTC, original submission:

Is it possible to compute your general odds pre-flop or post-flop
regarding number of player and you don't their hole cards, like the pokernews.com odd calculator does?

Anonymous

 

(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

Attached Files
file #9434:  fish.c added by efittery (6kB - text/x-csrc)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by efittery (Updated the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 05 Jul 2010 06:12:39 AM UTCefitteryAttached File-=>Added fish.c, #9434
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup