Skip to content
Commits on Jan 3, 2010
  1. @jimweirich
  2. @jimweirich
  3. @jimweirich
  4. @jimweirich
  5. @jimweirich

    Some minor reformatting.

    jimweirich committed Jan 2, 2010
  6. @jimweirich

    Updated try ruby link

    jimweirich committed Jan 2, 2010
  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 committed Dec 22, 2009
Commits on Dec 21, 2009
  1. @jimweirich

    Added ref to Little Lisper.

    jimweirich committed Dec 21, 2009
  2. @jimweirich

    Fixed rules typos.

    jimweirich committed Dec 21, 2009
  3. @jimweirich
  4. @jimweirich
  5. @jimweirich
  6. @jimweirich

    Cleaned up src directory

    jimweirich committed Dec 21, 2009
  7. @jimweirich

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

    …ved SOURCE directory reference.
    jimweirich committed Dec 21, 2009
  8. @jimweirich

    Ignoring the dist directory

    jimweirich committed Dec 21, 2009
  9. @jimweirich
  10. @jimweirich
  11. @jimweirich

    New Rakefile

    jimweirich committed Dec 21, 2009
  12. @jimweirich

    Added src directory

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

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

    fix url for tryruby

    coreyhaines committed with Marc Peabody Oct 7, 2009
  2. @rfelix

    Removed duplicated array assignment tests from about_arrays.rb which …

    …are also in about_array_assignment.rb
    rfelix committed with Marc Peabody Aug 22, 2009
  3. re-wrote a bit of explanation of red/green/refactor

    Robert Osborne committed with Marc Peabody Jun 27, 2009
  4. fixed typoo in def test_any_ruby_expression_my_be_interpolated

    Robert Osborne committed with Marc Peabody Jun 28, 2009
  5. method name test_if_then_else_statements was duplicated, overwriting …

    …the first def.
    Robert Osborne committed with Marc Peabody Jun 29, 2009
  6. Edited GREED_RULES

    Robert Osborne committed with Marc Peabody Jun 30, 2009
  7. @capitalist

    Fix typo

    capitalist committed with Marc Peabody Feb 10, 2009
  8. @capitalist

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