Open Side Menu Go to the Top
Register
How can i make use poker-eval library in Java How can i make use poker-eval library in Java

01-03-2017 , 01:11 PM
I'am not very experienced with building libraries. I know that there is poker-eval for C and also for python. In the following link there is a folder for java, how can i make use of the library?
I'd like to build a program that needs to perform hand evaluations, if preferable i'd like to make use of the library and not implemment it myself because it will probably too much work and end up being too slow. Is this possible?
https://github.com/v2k/poker-eval
How can i make use poker-eval library in Java Quote
01-03-2017 , 01:50 PM
This is a somewhat involved question. It's a little hard to know which parts you don't know but here's the general outline.

You'll need to build the library. I assume this actually means you'll need to build the whole project. The "INSTALL" document lays out how to build:
https://github.com/v2k/poker-eval/blob/master/INSTALL

I haven't downloaded/installed it but it looks like it will build the C library and then also give you a jar file (or more than one jar file) containing a JNI wrapper for the C library. So the jar flle + the C library file will give you the ability to run the hand simulations from Java.

Presumably you know how to include jar files into your java project
How can i make use poker-eval library in Java Quote
01-03-2017 , 01:55 PM
Actually this is a better start
https://github.com/v2k/poker-eval/bl...HATS-HERE.Java
How can i make use poker-eval library in Java Quote
02-11-2017 , 08:22 AM
What about for C/C++?
How can i make use poker-eval library in Java Quote
02-11-2017 , 10:30 PM
Quote:
Originally Posted by leavesofliberty
What about for C/C++?
Should be very straightforward. It compiles to a library that you can link to your programs.
How can i make use poker-eval library in Java Quote

      
m