Commit Graph

109 Commits

Author SHA1 Message Date
Julien Lengrand-Lambert
4c8869e89f Starts working on problem 49 2014-05-22 22:05:03 +02:00
julien lengrand-lambert
eb7f048dea Updates Readme 2013-09-15 11:53:51 +02:00
julien lengrand-lambert
f30aa08e7a Commit removes all the debug code 2013-09-15 11:51:25 +02:00
julien lengrand-lambert
4d0c03213e The problem was in the suite calculation. This commit contains all the debug code. 2013-09-15 11:50:28 +02:00
julien lengrand-lambert
966721cd0f Solves one bug, but there is apparently another one 2013-09-15 01:01:51 +02:00
julien lengrand-lambert
7c9b4eac14 MAin code is finished. There is a bug that makes the code gives a wrong result. Lots of statisitcs code has been added to investigate this 2013-09-15 00:46:28 +02:00
julien lengrand-lambert
550651b8de Fixes several bugs. Game 24 runs in infinite loop though, trying to see why 2013-09-13 19:49:04 +02:00
julien lengrand-lambert
31e1f7ea61 Fixes a rank bug 2013-09-13 17:57:54 +02:00
julien lengrand-lambert
072956c1c6 Implement a who_wins method, that finds who has the better hand in a game of two poker players 2013-09-13 17:23:07 +02:00
julien lengrand-lambert
ba6ddcb562 Implements all other comparison methods. We can now compare two hands. I think we can actually finish now 2013-09-13 17:15:43 +02:00
julien lengrand-lambert
4c5f50c1c1 Implements the eq method 2013-09-13 16:31:10 +02:00
julien lengrand-lambert
125613b13f Adds rank object, that will be used to compare player ranks 2013-09-13 07:38:02 +02:00
julien lengrand-lambert
38549e668a It is now possible to determine player s rank. Next step is to return a precise rank object, for later comparison with other player if needed 2013-09-13 06:53:23 +02:00
julien lengrand-lambert
d44aa1afb3 Go through all the possible combinations. Some still have to be implemented 2013-09-13 06:43:15 +02:00
julien lengrand-lambert
956ce2578c Implements Royal Flush detector 2013-09-12 19:35:17 +02:00
julien lengrand-lambert
f1c45a5012 Implements straight hand detector 2013-09-12 19:12:31 +02:00
julien lengrand-lambert
7ab048f9f6 Starts working on finding consecutive cards 2013-09-12 08:31:06 +02:00
julien lengrand-lambert
3bd07157d6 Creates a same_color method in PokerRanking 2013-09-12 06:57:40 +02:00
julien lengrand-lambert
3b6074fc50 Cards are now sorted on Hand creation directly. Everything is handled using proper Objects. Next step is to find how to calculate someone's hand value 2013-09-12 06:45:22 +02:00
julien lengrand-lambert
9f6c0aac74 Problem is obviously way more complex than expected. Changing to a more complex structure. Still in refactoring 2013-09-11 18:51:17 +02:00
julien lengrand-lambert
8fe580e24d Implements the stripping routine> Everything is sequential, but as we dont have much data this is not really an issue 2013-09-11 16:17:24 +02:00
julien lengrand-lambert
817c2b8683 Starts working on problem 54.
Currently just loads the data in a way that can be used.
Next step is to sort players cards
2013-09-11 16:06:19 +02:00
Julien Lengrand-Lambert
995bdf13b7 Solves problem 44. a bit long but first guess was the right one 2012-10-21 19:55:59 +02:00
Julien Lengrand-Lambert
11aa1ef61e Solves Problem 55 2012-10-21 18:13:05 +02:00
203ea69dbb Solves problem 43
Starts working on problem 55
2012-10-20 20:00:36 +02:00
99334f1594 Solves problem 50
This means I know solveed 50 euler problems. Youhou !
2012-10-19 13:39:15 +02:00
Julien Lengrand-Lambert
957ede8215 Solves Problem 40 of Project Euler
Dumbest solution ever, but so fast to implement.
And finally runs in less than 2 seconds on my Netbook.

I really wonder even why search for optimization.

Python int to str conversion is so useful for those problems.
2012-10-16 23:25:29 +02:00
57353d2d26 commit before going to bed 2012-10-16 22:13:06 +02:00
aa788db715 Updates README 2012-10-16 21:47:34 +02:00
1bedcd4c00 Solves problem 56
Didn't expect it to be so simple.

I'd like to find the nice way to sum all numbers of an integer
2012-10-16 21:46:48 +02:00
julien Lengrand-Lambert
f1f4da4e8f Update README.markdown
Adds information about how I solve problem. 
Puts too long solutions in bold.
2012-10-16 22:20:53 +03:00
e92ed128d2 (Finally) solves problem 26 of PRoject Euler.
Thanks to an upvote on Stack Overflow :)
2012-10-16 19:29:39 +02:00
a7e681e0af Solves problem 46. Commuting is awesome 2012-05-25 18:38:20 +02:00
julien Lengrand-Lambert
e761bc0df0 Small commit for Masterbranch 2012-05-07 13:32:31 +02:00
julien Lengrand-Lambert
5d94287f1b Solves problem 33 of Project Euler.
Ugly but result comes in an instant, so . . .
2012-05-03 18:56:37 +02:00
julien Lengrand-Lambert
a48b0ea435 Solves problem 38 in less than one second.
Code is not that beautiful though.
2012-05-03 12:45:02 +02:00
julien Lengrand-Lambert
677494354e Solves problem 41.
Would really need some decorators to spped up the process and get it
prettier though.
2012-05-02 18:55:30 +02:00
julien Lengrand-Lambert
a173f16dcb Solves Problem 37 of Project Euler
Could be refactored a bit to avoid code redondance.
Uses my list of primes numbers

Performs calculations in less than one minute.
2012-05-02 14:20:07 +02:00
julien Lengrand-Lambert
a00fe0fab3 Solves Problem 33 (coin change). Adds some new problems 2012-05-02 09:05:08 +02:00
julien Lengrand-Lambert
f09f83e0a4 Finally solves problem 35. Problem of . . . definition . 2012-05-01 22:03:10 +02:00
Julien Lengrand-Lambert
200d812bc4 Solving problem 35. Bug to be found 2012-04-30 00:32:46 +02:00
unknown
a5fb54a2c5 Small update, removes clear email
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-03-23 15:52:29 +01:00
Julien Lengrand-Lambert
abfecf027d On my way to problem 31!
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-03-04 01:03:22 +01:00
Julien Lengrand-Lambert
f1b1a93006 On my way to problem 31!
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-03-01 21:54:05 +01:00
Julien Lengrand-Lambert
74e8477389 Prepares problem 97
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-29 15:15:49 +01:00
Julien Lengrand-Lambert
691187f50a Problem 3 more efficient.
Downloaded some new stuff on primes. 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-22 23:49:15 +01:00
Julien Lengrand-Lambert
98d0e588d8 Problem 3 more efficient.
Downloaded some new stuff on primes. 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-21 20:40:57 +01:00
Julien Lengrand-Lambert
6caa5feb23 Solves Problem 32. Opens the path to pandigital problems !
Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-20 22:26:00 +01:00
Julien Lengrand-Lambert
1fdf9883b8 Solve a new problem.
Prepares some others. 

More than 35 problem solved ! 

Signed-off-by: Julien Lengrand-Lambert <julien@lengrand.fr>
2012-02-20 16:17:10 +01:00
Julien Lengrand-Lambert
f16f45ce7b Adds a profiler to help enhancing problem solving 2012-02-15 15:45:27 +01:00