Commit graph

40 commits

Author SHA1 Message Date
d3dba4b9cd Problem 015
git-svn-id: file:///srv/svn/euler@40 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:19 +00:00
e4deb217d1 Problem 014
git-svn-id: file:///srv/svn/euler@39 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:18 +00:00
5114433f37 Problem 013
git-svn-id: file:///srv/svn/euler@38 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:17 +00:00
cb0cd33bfa Completed problem 012
git-svn-id: file:///srv/svn/euler@37 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:16 +00:00
d29322f502 Problem 012, incomplete
git-svn-id: file:///srv/svn/euler@36 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:15 +00:00
f151766af6 Wrap executable code so it can be used a library
git-svn-id: file:///srv/svn/euler@35 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:14 +00:00
9d98a914f5 Renamed prime factor function
git-svn-id: file:///srv/svn/euler@34 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:13 +00:00
0506c81f6e Problem 011
git-svn-id: file:///srv/svn/euler@33 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:12 +00:00
8249e88efc Problem 010
git-svn-id: file:///srv/svn/euler@32 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:11 +00:00
5bbf86c6c3 Renaming exercise files so functions can be imported into other scripts
git-svn-id: file:///srv/svn/euler@31 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:10 +00:00
9e2d5b6101 Optimized prime finding
git-svn-id: file:///srv/svn/euler@30 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:09 +00:00
715e24dcf3 For problems that include defined utility functions, only run
excecutable code if they are called directly.

git-svn-id: file:///srv/svn/euler@29 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:08 +00:00
eecb37127f Problem 009
git-svn-id: file:///srv/svn/euler@28 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:07 +00:00
743dbe3aef Minor optimization to 007
git-svn-id: file:///srv/svn/euler@27 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:06 +00:00
6874be8b31 Problem 008
git-svn-id: file:///srv/svn/euler@26 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:05 +00:00
44604b08c7 Problem 006
git-svn-id: file:///srv/svn/euler@25 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:05 +00:00
daa7b36149 Problem 007
git-svn-id: file:///srv/svn/euler@24 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:04 +00:00
82c0ac0672 Problem 005
git-svn-id: file:///srv/svn/euler@23 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:03 +00:00
9d96efdaf3 Problem 004
git-svn-id: file:///srv/svn/euler@22 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:02 +00:00
e099ac9357 Removing compiled python files
git-svn-id: file:///srv/svn/euler@21 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:01 +00:00
5ee02e30bc Problem 003
git-svn-id: file:///srv/svn/euler@20 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:00 +00:00
7ddfd7ef7e Uncommitted stuff, yay git
git-svn-id: file:///srv/svn/euler@19 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:52:59 +00:00
127c09387d Modified 054
git-svn-id: file:///srv/svn/euler@18 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:52:58 +00:00
628861e107 Path reorganization
git-svn-id: file:///srv/svn/euler@17 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:52:57 +00:00
67e0a4dafd Added classes for Decks and Players
git-svn-id: file:///srv/svn/euler@16 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-01 21:21:33 +00:00
71973e170f Removed pointless 5 card limitation from the static factory method
git-svn-id: file:///srv/svn/euler@15 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-01 04:44:32 +00:00
e2d55968e3 Documentation for the poker classes
git-svn-id: file:///srv/svn/euler@14 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-01 04:26:50 +00:00
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
e74a588d8f Updated euler app to use regular comparisons
git-svn-id: file:///srv/svn/euler@10 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-03-31 20:18:14 +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
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