3807d9f5bf
Problem 028
...
git-svn-id: file:///srv/svn/euler@57 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-05-03 22:40:23 +00:00
fb13b3ce62
Problem 024
...
git-svn-id: file:///srv/svn/euler@56 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-29 03:25:47 +00:00
0be427137c
Problem 048
...
git-svn-id: file:///srv/svn/euler@55 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-28 17:18:51 +00:00
4faaf8c80a
Problem 025
...
git-svn-id: file:///srv/svn/euler@54 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-28 17:14:57 +00:00
87d2ab997d
Problem 023. Very slow, but works. Should look into speeding this up
...
somehow.
git-svn-id: file:///srv/svn/euler@53 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-28 01:40:51 +00:00
7ab229ba18
Corrected: Values not sorted properly for hands with multiple multiples. Added a
...
test case to handle it.
git-svn-id: file:///srv/svn/euler@52 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-23 03:55:50 +00:00
ad80b41e06
Corrected high card error for hands < 5 cards. Added discard to Player.
...
git-svn-id: file:///srv/svn/euler@51 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-23 03:48:36 +00:00
3373f8f1f7
executable code, yay
...
git-svn-id: file:///srv/svn/euler@50 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-14 21:30:59 +00:00
4b1ce72158
Problem 022
...
git-svn-id: file:///srv/svn/euler@49 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-14 21:12:07 +00:00
dfa586dc1f
Problem 021
...
git-svn-id: file:///srv/svn/euler@48 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-14 20:58:26 +00:00
8978f31f65
Problem 020
...
git-svn-id: file:///srv/svn/euler@47 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-14 19:34:18 +00:00
cd6bea96ee
Problem 019
...
git-svn-id: file:///srv/svn/euler@46 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-14 19:19:30 +00:00
da639adddb
Problem 067, brought to you by 018
...
git-svn-id: file:///srv/svn/euler@45 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 21:13:21 +00:00
63982f51a0
Problem 018
...
git-svn-id: file:///srv/svn/euler@44 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 21:06:47 +00:00
3a59429f26
Directory cleanup
...
git-svn-id: file:///srv/svn/euler@43 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:59:04 +00:00
7c96dade88
Problem 17
...
git-svn-id: file:///srv/svn/euler@42 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:20 +00:00
d4dd1310ea
Problem 016
...
git-svn-id: file:///srv/svn/euler@41 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
2010-04-12 15:53:20 +00:00
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