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 Dec 16 19:07:00 2009  
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 Jul 5 06:12:39 2010, 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 Dec 16 19:07:00 2009, 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 odd calculator does?



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

Attach File(s):

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.


    Error: not logged in



    Follows 1 latest change.

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

    Back to the top

    Powered by Savane 3.1-cleanup