Commit graph

109 commits

Author SHA1 Message Date
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
48f5524596 Switching the euler python script back to its original filename
git-svn-id: file:///srv/svn/euler@6 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-31 13:55:02 +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
cf3359807d Fixed royal flush ranking (not that it really affected anything)
git-svn-id: file:///srv/svn/euler@4 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-30 17:31:03 +00:00
e7ab66cbd7 Added some five card hand tests
git-svn-id: file:///srv/svn/euler@3 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-30 17:30:38 +00:00
b4e349239b Adding unit testing for the poker app
git-svn-id: file:///srv/svn/euler@2 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-30 16:03:41 +00:00
27734df4c4 Initial import
git-svn-id: file:///srv/svn/euler@1 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-30 15:01:13 +00:00