519824caee
Allowing a hand to be anything between 1 and 5 cards. This will allow
...
for improvement probability calculations and such, as well as ranking
smaller hands for games like chinese poker.
git-svn-id: file:///srv/svn/euler@13 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-01 03:59:16 +00:00
987dc151cf
Completed smart hand building, passes all 7 card tests now :)
...
git-svn-id: file:///srv/svn/euler@12 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-01 03:44:03 +00:00
fc89b6e2c7
Smarter hand detection for all but straights. Falls back to brute
...
forcing for high card and straights for now.
git-svn-id: file:///srv/svn/euler@11 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-31 21:41:52 +00:00
b882ba3c8d
Updated class comparisons to use the magic __cmp__ method. Fixed ace low
...
straight values. Fixed broken comparison tests.
git-svn-id: file:///srv/svn/euler@9 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-31 20:14:47 +00:00
df93303499
Modified the class to accept more than 5 cards. Currently brute-forces
...
to find the best possible hand.
git-svn-id: file:///srv/svn/euler@8 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-31 19:48:53 +00:00
de333d0940
Made private fields actually private
...
git-svn-id: file:///srv/svn/euler@7 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-31 14:06:26 +00:00
dd7bda3d51
Split the poker classes into their own library
...
git-svn-id: file:///srv/svn/euler@5 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-31 13:54:35 +00:00