Commit Graph

10 Commits

Author SHA1 Message Date
Tommy Parnell
b1893f6d68 add koans dir 2018-06-01 01:17:07 +00:00
Jim Weirich
2ddd929473 Remove koans directory from source control.
Patches were submitted against the koans directory rather than the
src directory. This lead to potential problems when we regenerate the
koans directory from scratch, leading to the very real possibility
that changes could be lost.

Please make all changes to the src directory and use "rake gen" (or
"rake regen") to generate the koans directory as needed.
2011-12-04 02:47:24 -05:00
nazgob
3d18d339e4 fixed typo -> Issue #39 2011-04-13 06:50:17 -07:00
Jim Weirich
57f0f4f178 Updated koans from source. 2010-09-12 21:33:11 -04:00
Jim Weirich
8ef93f1d3a UPdated koans to match latest source. 2010-08-16 15:06:12 -04:00
Jim Weirich
425fd41fbc Fixed misspelling of "multiple" (http://www.pivotaltracker.com/story/show/2072574) 2010-01-03 06:27:59 -05:00
Jim Weirich
e21e46bdf9 Renamed test (http://www.pivotaltracker.com/story/show/2072574) 2010-01-02 22:22:38 -05:00
capitalist
41ef277f40 Fixed typo and faulty expectation.
There are three twos = 200 and one five = 50 => so this should be 250

Also, here's my score method - I feel like I over complicated this:
# def score(dice)
#   #count em up
#   results = dice.inject(Hash.new) {|h, die| h[die] = h[die] ? h[die] + 1 : 1; h }
#
#   #convert to scores
#   score = results.keys.inject(0) do |s,k|
#     s += \
#     case k
#     when 1
#       results[k] >= 3 ? 1000 + (results[k]-3)*100  : results[k] * 100
#     when 2..4,6
#       results[k] >= 3 ? 100*k : 0
#     when 5
#       results[k] >= 3 ? 500 + (results[k]-3)*50  : results[k] * 50
#     else
#       0
#     end
#   end
# end
2009-10-08 13:08:45 -04:00
Jonathan Lim
4b65b1f52d Fixing scores
Signed-off-by: edgecase <github@theedgecase.com>
2009-01-29 02:22:41 +08:00
Joe O'Brien
7d59878eaa moving files around a bit 2009-01-26 12:11:46 -05:00