Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Commits on Jan 3, 2010
  1. @jimweirich
  2. @jimweirich
  3. @jimweirich
  4. @jimweirich
  5. @jimweirich

    Some minor reformatting.

    jimweirich authored
  6. @jimweirich

    Updated try ruby link

    jimweirich authored
  7. @jimweirich
Commits on Dec 31, 2009
  1. @jimweirich
Commits on Dec 24, 2009
  1. @jimweirich
  2. @jimweirich
Commits on Dec 23, 2009
  1. @jimweirich
  2. @jimweirich
  3. @jimweirich

    Fixed typos in Greed Rules.

    jimweirich authored
Commits on Dec 21, 2009
  1. @jimweirich

    Added ref to Little Lisper.

    jimweirich authored
  2. @jimweirich

    Fixed rules typos.

    jimweirich authored
  3. @jimweirich
  4. @jimweirich
  5. @jimweirich
  6. @jimweirich

    Cleaned up src directory

    jimweirich authored
  7. @jimweirich

    Updated Rakfile to copy the main readme into the koan directory. Remo…

    jimweirich authored
    …ved SOURCE directory reference.
  8. @jimweirich

    Ignoring the dist directory

    jimweirich authored
  9. @jimweirich
  10. @jimweirich
  11. @jimweirich

    New Rakefile

    jimweirich authored
  12. @jimweirich

    Added src directory

    jimweirich authored
Commits on Oct 13, 2009
  1. @bret
Commits on Oct 9, 2009
  1. Add preceding bang to make first test fail

    Ken Barker authored
    Seems in-line with the other koans at this point
    to require the student remove the bang.
Commits on Oct 8, 2009
  1. @coreyhaines

    fix url for tryruby

    coreyhaines authored Marc Peabody committed
  2. @rfelix

    Removed duplicated array assignment tests from about_arrays.rb which …

    rfelix authored Marc Peabody committed
    …are also in about_array_assignment.rb
  3. re-wrote a bit of explanation of red/green/refactor

    Robert Osborne authored Marc Peabody committed
  4. fixed typoo in def test_any_ruby_expression_my_be_interpolated

    Robert Osborne authored Marc Peabody committed
  5. method name test_if_then_else_statements was duplicated, overwriting …

    Robert Osborne authored Marc Peabody committed
    …the first def.
  6. Edited GREED_RULES

    Robert Osborne authored Marc Peabody committed
  7. @capitalist

    Fix typo

    capitalist authored Marc Peabody committed
  8. @capitalist

    Fixed typo and faulty expectation.

    capitalist authored Marc Peabody committed
    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
Something went wrong with that request. Please try again.