« first day (7 days earlier)      last day (27 days later) » 

1:06 PM
Time for more tests!
@retailcoder You have exactly 5k rep in total on all SE sites, nice
 
1:26 PM
I'm about to post my Sudoku solver, you done yet? (jk)
 
@retailcoder Still working on the Poker thing :)
 
2:00 PM
@retailcoder More tests fixed now, but I think I need some refactoring
 
2:28 PM
@Sim that's some quality bar!
 
@retailcoder No more get-it-done-fast trap, you know!
@retailcoder And I just added three more tests, but they all worked fine
@retailcoder Working on the last part now, code documentation :)
 
2:59 PM
Wow that's gonna be the best Java code I've ever seen?
 
@retailcoder Depends on how much other Java code you have looked at. I don't think it will be the best, there are probably some flaws. It's <s>hard</s> impossible to write perfect code.
 
3:25 PM
lol. The only Java code I read were Uncle Bob's examples in Clean Code - the bar is quite high :)
 
3:42 PM
It's pretty much the same as C# really.
 
4:02 PM
@retailcoder Well, we'll see what you think about my code once I publish it. Gotta eat first, then I will write my question
And I just found this!
@retailcoder Read that link at your own risk :)
 
 
1 hour later…
5:12 PM
Body is limited to 30000 characters; you entered 32984.
@retailcoder My code is too long!!
 
@SimonAndréForsberg - strip the comments , they're useless anyway.
Then strip all the carriage-returns... .who needs them?
And indenting, what a waste!
bet about half your program is whitespace.
 
@rolfl I'll make a special edit just for you with those modifications ;)
I don't know if it's a true story, but I have heard about a programmer who wrote the entire program in C++ on one line to make it run faster.
 
5:28 PM
Actually, thinking about it, using tab-indenting will save you about 4 characters per line ... ;-)
 
I think I use that already, at least mostly
 
5:41 PM
@rolfl Perhaps I should obfuscate my code before submitting it for review? That ought to reduce the size of it
 
Golf-code it?
 
0
Q: Weekend Challenge - Poker Hand Evaluation

Simon André ForsbergWeekend Challenge #2 - Poker Hand Evaluation Very early I decided to support the usage of wild jokers, even though I knew that this was going to lead to trouble more work. I also wanted to support big collection of cards, for example if you have 7 cards and choose the best 5-card poker hand of t...

 
No thanks :) No gold-code here
 
6:23 PM
@SimonAndréForsberg is wildcards limited to just 1?
 
@rolfl Nope, it can be any number of wildcards. I'll add that.
 
6:35 PM
@SimonAndréForsberg next question, is it better to have a 'higher' straight-5, or a lower straight-6 ?
(or is 5 the limit...?)
 
@rolfl Currently, the limit of a straight is five cards.
 
OK, because many of the 'hands' will have more than 5 cards.... ;-)
 
the input arrays 1 1 1 1 1 1 1 and 0 0 1 1 1 1 1 should both return the same straight.
@rolfl Yes, having more than 5 cards on the hand is fine, but my PokerHandResult (from my weekly challenge code) only cares about the best 5 cards.
 
OK, yes, I think I can whip-yo'-butt .... :p
 
@rolfl Looking forward to it :P
 
7:03 PM
I really didn't think this week's challenge would take so much time, but of course... Perhaps I made it a bit more complex than it had to be, adding those wildcards...
 
7:20 PM
@SimonAndréForsberg - posted.... enjoy. I'm heading out for a few hours (I happen to have friends too).
 
8:13 PM
@rolfl Thanks, it might take a while for me to understand what you have done there :)
 
8:29 PM
@retailcoder You're making me nervous! What case do you think will break my code?
 
 
2 hours later…
10:32 PM
@Jamal Will you use this code for a C++ Poker evaluator?
 
10:59 PM
@SimonAndréForsberg: I will use something similar. I have more up-to-date code. However, I won't be able to do this challenge this weekend.
 
@Jamal That's fine, do it next week :) I hope more people than I and @retailcoder does it.
Although I have to admit - it wasn't an easy one
 
11:47 PM
Yeah, ...was fun though :)
@sim
 
@retailcoder Ding!
 
11:59 PM
Daily vote limit reached; vote again in 30 seconds.
 

« first day (7 days earlier)      last day (27 days later) »