This is a library for creating agents that can play Texas Hold'em and includes an example agent Hob2 who can play randomly or to maximize EV based on seven-card hand strength. Currently, the library implements only the ACPC protocol, but support for more should not be hard to add. There is also code for generating game trees and calculating a Nash Equilibrium, but it is not complete.
The library uses the 2 + 2 hand ranks table to evaluate hands. The table can be generated both in Windows or Linux using Wine. Hob2 expects the table to be in the same directory it is run in.
Poker poker library
Copyright (C) 2012 David Campbell <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.