Hi all, I was researching about making a texas holdem poker game when I found this article by Keith Gill, where he has created a C# library for evaluating poker. I would like to import this to my project, but I do not have much experience with dealing with external libraries. Can anyone advise if it is possible to use this on my Unity Project? If so, what are the steps I should follow?
You’d need to know your way around WFP or WinForms as that’s what the example is built with and you’d need to seperate it from all that windows UI code.
Honestly though, if you’re serious about making a poker game use that article to gain some insight but write it yourself - it’s going to be the core of your AI and I’d not want that to be a library I didn’t 100% understand or something I’d hesitate to jump in and change if bugs are discovered.
You would not be able to “import” it per se, you’ll need to carefully copy the relevant C# code. So you’ll want to understand what the code is doing and probably get the the Winform project working first. But the code looks fairly straight forward, first thing you would need to remove (or comment out) the Console.WriteLine code before copying the code after you get it working as-is.