Image Image Image




Post new topic Reply to topic  [ 239 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12
Author Message
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Mon Feb 20, 2012 9:19 pm 
Offline
Regular member
User avatar

Posts: 87
Favourite Bot: Mine
I was able to compile PSim in XCode 3.2 into a dylib for Macs if anybody wants it. I had to combine it with some poker eval routines from the mac port called ObjectiveEval by Alex C to get it to work right. Combining Obj C and C++ is not the best way to do it but oh well.


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Sun Mar 11, 2012 11:21 am 
Offline
Senior member
User avatar

Posts: 209
Favourite Bot: winnie
PSim has the possibility to calculate the equity Hand vs random and Hand vs Hand.
Is there a way to calculate a single Hand vs range? (e.g. TsTd vs 99+,ATs+,ATo+)
or is there a "workaround" to do it? :)


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Sun Mar 11, 2012 4:56 pm 
Offline
Junior member
User avatar

Posts: 39
Favourite Bot: nonameasofrightnow
winnie wrote:
PSim has the possibility to calculate the equity Hand vs random and Hand vs Hand.
Is there a way to calculate a single Hand vs range? (e.g. TsTd vs 99+,ATs+,ATo+)
or is there a "workaround" to do it? :)


workaround: http://pokerai.org/pf3/viewtopic.php?p=41433#p41433


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Mon Mar 12, 2012 9:48 am 
Offline
Senior member
User avatar

Posts: 209
Favourite Bot: winnie
veryfastT wrote:
winnie wrote:
PSim has the possibility to calculate the equity Hand vs random and Hand vs Hand.
Is there a way to calculate a single Hand vs range? (e.g. TsTd vs 99+,ATs+,ATo+)
or is there a "workaround" to do it? :)


workaround: http://pokerai.org/pf3/viewtopic.php?p=41433#p41433

thanks for the reply but I don't get it.

Quote:
you can code a quick prog that using the hand evaluator can calculate how much times each range wins. you go trough all possible outcomes for current board (if preflop no board lol) and see if range1/range 2/range 3 wins (there's no problem with range1 having only one hand). sum that up and voila. is that it? if it's this what you want and you can't find anything that does it you can easily code it or learn how to code it.
there's also pokerstove.


How can I do this with PSim? Probably it's to early in the morning, but I don't know what you mean. :)


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Mon Mar 12, 2012 4:54 pm 
Offline
Junior member
User avatar

Posts: 39
Favourite Bot: nonameasofrightnow
winnie wrote:
PSim has the possibility to calculate the equity Hand vs random and Hand vs Hand.

I don't know PSim's exact functionality but if it allows to do calculate Hand vs Hand equity with a 2 or 3 'for's you can easily calculate the equity for range vs range or hand vs range. That's what i tried to explain how to do in the other post. I don't feel like trying to explain again it's early for me too :p


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Wed May 30, 2012 5:11 pm 
Offline
New member
User avatar

Posts: 1
Favourite Bot: Autoit
Hi,

one question about possible Hands.

For example :
I tried the psim-gui.exe and the autoit script.

If you get the hand state for 6s 7s Jh Jd Jc

the hand state says : Possible Full House = False.
Why?
Any pair has a Full House!


And another question. Is it posibble to get an info about your pair or your trips?

For example : 3h 3d 3c Td As
Here a have trips, but better trips are possible. So it would be a nice info if there is a state like : better trips are possible

Or : 8h 8D 7c 3d 2s
State says Overpair : A nice info would be : 7 Overpairs could be higher than your 8h, 8d


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Sat Jun 23, 2012 5:43 pm 
Offline
Junior member
User avatar

Posts: 15
Favourite Bot: Guztiak
Thanks for the library!

I am getting an error when compiling it:

Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: pokerai.psim.PSim.SimulateHand(Ljava/lang/String;Lpokerai/psim/SimResults;FFI)V
   at pokerai.psim.PSim.SimulateHand(Native Method)
   at pokerai.psim.PSim.SimulateHand(PSim.java:29)
   at pokerai.psim.PSimTest.main(PSimTest.java:28)


The program reads the psjw.dll but it seems that something os not working well, could anyone help me?
Thanks!


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Tue Sep 18, 2012 2:25 am 
Offline
Junior member
User avatar

Posts: 11
Location: Finland
Favourite Bot: polaris
Quote:
Thanks for the library!

I am getting an error when compiling it:

Quote:
Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: pokerai.psim.PSim.SimulateHand(Ljava/lang/String;Lpokerai/psim/SimResults;FFI)V
at pokerai.psim.PSim.SimulateHand(Native Method)
at pokerai.psim.PSim.SimulateHand(PSim.java:29)
at pokerai.psim.PSimTest.main(PSimTest.java:28)


The program reads the psjw.dll but it seems that something os not working well, could anyone help me?
Thanks!


Same problem here, do you find anykind of solution?

EDIT:
some kind of progress, but different error message:
Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\JTT\Downloads\psim\psim_dist\java\PSim\psjw.dll: Can
't load IA 32-bit .dll on a AMD 64-bit platform


I'm using win7 64bit. Try to run code win xp compability mode, but no help there.

some workaround how to get this work with win7?


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Tue Sep 18, 2012 8:29 am 
Offline
Senior member
User avatar

Posts: 209
Favourite Bot: winnie
rattanat wrote:
Quote:
Thanks for the library!

I am getting an error when compiling it:

Quote:
Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: pokerai.psim.PSim.SimulateHand(Ljava/lang/String;Lpokerai/psim/SimResults;FFI)V
at pokerai.psim.PSim.SimulateHand(Native Method)
at pokerai.psim.PSim.SimulateHand(PSim.java:29)
at pokerai.psim.PSimTest.main(PSimTest.java:28)


The program reads the psjw.dll but it seems that something os not working well, could anyone help me?
Thanks!


Same problem here, do you find anykind of solution?

EDIT:
some kind of progress, but different error message:
Code:
Exception in thread "main" java.lang.UnsatisfiedLinkError: C:\Users\JTT\Downloads\psim\psim_dist\java\PSim\psjw.dll: Can
't load IA 32-bit .dll on a AMD 64-bit platform


I'm using win7 64bit. Try to run code win xp compability mode, but no help there.

some workaround how to get this work with win7?


My guess is, that the dll is not working on a 64bit machine.
I'm using it with Win7 32bit and its working perfectly.


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Tue Sep 18, 2012 9:37 am 
Offline
PokerAI fellow
User avatar

Posts: 1239
Favourite Bot: my bot
Run a 32 bit JVM. http://stackoverflow.com/questions/8113 ... t-platform


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Tue Sep 18, 2012 1:40 pm 
Offline
Junior member
User avatar

Posts: 23
Favourite Bot: none
First of all, I must say that C or C++ is not at all my cup of tea, so I don't know if it is possible...

But, just a question : why not generate a 64bits dll ? Maybe it would be quite simple for Timmy or someone else to do it ? 8-) and it would guarantee the use of Timmy library on 64 bits systems.


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Sat Sep 22, 2012 11:53 pm 
Offline
Junior member
User avatar

Posts: 11
Location: Finland
Favourite Bot: polaris
Quote:
First of all, I must say that C or C++ is not at all my cup of tea, so I don't know if it is possible...

But, just a question : why not generate a 64bits dll ? Maybe it would be quite simple for Timmy or someone else to do it ? and it would guarantee the use of Timmy library on 64 bits systems.


I don't have skills to do it.

But I give :xx23 * million, anybody how does that.


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Mon Sep 24, 2012 5:12 pm 
Offline
PokerAI fellow
User avatar

Posts: 686
Location: Midwest, USA
Favourite Bot: N/A
Why do you guys want 64-bit programs? They are less performant if you don't need a large amount of RAM, and if you're using PSim you probably aren't using more than 4GB of RAM. 64-bit programs also add other issues, like it's harder to interface with a 32-bit poker client.

Do you think that you need to make all your programs 64-bit just because you're running a 64-bit CPU and OS? Or is there some other good reason I'm missing?


Top
 Profile  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Tue Sep 25, 2012 9:34 am 
Offline
Junior member
User avatar

Posts: 23
Favourite Bot: none
Hi,
Just tought it would be simpler to have a 64bits dll and so a single JVM.


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Thu Dec 20, 2012 1:04 am 
Online
Junior member
User avatar

Posts: 35
Favourite Bot: Working on it...
Any chance the .dll could be recompiled to a .so? Or a format compatible on OS X?
If so, thanks! Or any workarounds?


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Sat Dec 22, 2012 5:40 pm 
Offline
PokerAI fellow
User avatar

Posts: 686
Location: Midwest, USA
Favourite Bot: N/A
JP11 wrote:
Any chance the .dll could be recompiled to a .so?
You should be able to compile it yourself. Give it a shot, and if you run into problems, I may be able to help.

I don't think any of the code is platform specific, so far as I know. There shouldn't be any porting problems. Furthermore, I even used GCC to compile on Windows.


Top
 Profile  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Tue Dec 25, 2012 7:04 pm 
Online
Junior member
User avatar

Posts: 35
Favourite Bot: Working on it...
Recompiled as a shared library which is compatible for unix systems - thanks for all your hard work Timmy.
Ps I really should've searched the thread before hand, lots of info already available :oops:
PPs Merry Christmas!


Attachments:
libpsim.zip [33.05 KB]
Downloaded 32 times
Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Fri Feb 08, 2013 1:15 pm 
Offline
New member
User avatar

Posts: 8
Favourite Bot: Botage
Looking for some help on static library.

I am making my first attempt at c++ application and would like to use this cool library within it, without needing a dll.
I'm not sure I understand this static linking and such though.

I have successfully built the library, I needed timmys source and pokereval source, this created a .lib file.
My problem is, I don't know what to do with a lib file, I mean I know I link it as a dependency via linker, but is that all I need to do for the functions I have previously used via a call to the dll to be available to my application directly.

Please excuse my noob question.


Top
 Profile E-mail  
 
 Post subject: Re: Timmy's Poker Sim Library (PSim) Examples in C, Java, AutoIt
PostPosted: Mon Feb 11, 2013 12:46 am 
Offline
Senior member
User avatar

Posts: 458
Location: Now in the mighty PolarBoar variant!
Favourite Bot: ...
My understanding is that, as long as you include the Timmy header files in your code, it will work. Your C++ files will compile against those headers and then (in the link phase) you link created objects with the compiled library.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 239 posts ]  Go to page Previous  1 ... 8, 9, 10, 11, 12


Who is online

Users browsing this forum: No registered users and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: