« first day (9 days earlier)      last day (25 days later) » 

3:55 AM
A: Proposals for Weekly Challenge topics

retailcoderweekend-challenge #3 Sink a Ship Everyone has played Battleship. Let's implement the logic that sinks one. Ship has multiple "hit points" located at contiguous (x,y) coordinates, horizontally or vertically. Ship is sunken when all "hit points" are hit.

^^^ should be easier than the Poker hand thing.
4:14 AM
@SimonAndréForsberg that one's for you:
Go ahead. Laugh
4:42 AM
(it's fixed now)
5:23 AM
Q: Straight Poker Hand

retailcoderThis is yet another follow-up of Poker Hand Evaluation from the last weekend-challenge. This method works for both 5 and 7 card hands - it doesn't fill the gaps with jokers, but I'm happy with the passing tests: public PokerHandEvaluationResult IsStraight(IEnumerable<PokerCard> cards) { ...

4 hours later…
9:50 AM
@retailcoder Why did you make your question (removed)?
5 hours later…
3:01 PM
@sim because it's non-working code, despite the passing tests. I realized a couple minutes after posting, I'll edit and un-delete when I get it to work as intended :)
6 hours later…
9:16 PM
Q: isStraight evaluation function

tomdemuytThe context is weekend challenge #2 (poker hand evaluation). Hand.prototype.isStraight = function() { for( var i = 1 ; i < this.cards.length ; i++ ) if( this.cards[i].value + 1 != this.cards[i-1].value ) return false; return true; } cards is an array with card objects { suit : "x...


« first day (9 days earlier)      last day (25 days later) »