-
Notifications
You must be signed in to change notification settings - Fork 16
/
README.pokersource
99 lines (79 loc) · 3.48 KB
/
README.pokersource
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
$Id: README 1773 2006-10-12 11:34:41Z loic $
Introduction
============
poker-eval is a C library to evaluate poker hands. The result of the
evalution for a given hand is a number. The general idea is that if
the evalution of your hand is lower than the evaluation of the hand of
your opponent, you lose. Many poker variants are supported (draw,
holdem, omaha, etc.) and more can be added. poker-eval is designed
for speed so that it can be used within poker simulation software
using either exhaustive exploration or Monte Carlo.
The poker-eval library is Free Software and is released under the
terms of the GNU General Public License. See the COPYING file in the
root directory of the distribution.
Compiling -- GNU/Linux and Unix systems
=========================
This library uses the GNU Autoconf self-configuration mechanism, so
compiling on a GNU/Linux and Unix system should be fairly simple.
To build both the C library and the examples:
autoreconf --install
./configure
make
To build and run the tests:
AUTOMAKE=automake-1.9 ACLOCAL=aclocal-1.9 autoreconf --install
./configure
make check
The "make check" command will run several test programs to ensure that
everything works correctly. On slow machines, the tests may take
several minutes.
To install the library and the headers (by default they will
install in /usr/local/lib and /usr/local/include/poker-eval
respectively):
./configure
make install
To run the examples:
cd examples
read the usage at the beginning of the source file
and run the program accordingly
Compiling -- Windows, using cygwin
==================================
If you have the cygwin package installed, you can build the library as
per the directions above for GNU/Linux and Unix systems.
Compiling -- DOS / Windows (May be obsolete, please send updates
================================================================
The library can also be compiled using Microsoft Visual C++. In each
directory, special DOS makefiles are provided, called makefile.dos.
To compile the library, make sure that the VC tools are on the path
and that the LIB variable is properly set (VC provides a batch file,
vcvars32.bat, to set this up), and enter the following commands:
cd lib
nmake -f makefile.dos
cd ..\examples
nmake -f makefile.dos
cd ..\tests
nmake -f makefile.dos
You can't use make to run the test programs under Windows as you can
on Unix, but you can run them (digtest5 and digtest7, in the tests
directory) and compare the output value with the value in the make
file (makefile.dos in the tests directory) to ensure that the right
thing happened.
Once the library is built, you can use the resulting library
(libpoker.lib) in other Visual C++ projects. Make sure to put the
include directory of the pokersource library package in the include
path for projects that will be using the library.
Download
========
The library may be obtained from the pokersource project at
http://gna.org/projects/pokersource/
Reporting bugs, suggesting improvements
=======================================
As of August 2005, the poker-eval library is maintained by
Loic Dachary. Bug reports, suggestions for improvements, or candidates
for inclusion should be sent to
Loic Dachary <[email protected]>
Tim Showalter <[email protected]>
Michael Maurer <[email protected]>
You can also check out the pokersource user group at
http://groups.yahoo.com/group/pokersource or the mailing list
at https://mail.gna.org/listinfo/pokersource-users/