Morgan-Griffiths / PokerAI

1 poker program to rule them all
MIT License
4 stars 4 forks source link

Dois it work on windows? #42

Open tobeyond opened 2 years ago

tobeyond commented 2 years ago

I'm getting raise OSError('Unknown OS')

Morgan-Griffiths commented 2 years ago

Hi tobeyond!

It should, i haven't run it on Windows myself. The error you are getting is raised by the cardlib.py file (there are 3 copies of it in kuhn, hand_recognition and poker_env. direct link -> https://github.com/Morgan-Griffiths/PokerAI/blob/master/poker/utils/cardlib.py)

caused by this line ` if platform == "linux" or platform == "linux2":

linux

lib = ctypes.cdll.LoadLibrary(path.join(release_dir, "librusteval.so"))

elif platform == "darwin":

OS X

lib = ctypes.cdll.LoadLibrary(path.join(release_dir, "librusteval.dylib"))

else: raise OSError('Unknown OS') `

When you built the poker hand evaluator in rust, what was the extension on the librusteval? Happy to fix this or merge a fix. I actually just started working on it again so you picked a perfect time :)