Skip to content

# suresh/ruby_koans forked from neo/ruby_koans

### Subversion checkout URL

You can clone with
or
.
Commits on Nov 20, 2009
1. authored
Commits on Oct 13, 2009
1. bret authored
Commits on Oct 9, 2009
1. 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 authored Marc Peabody committed
2. rfelix authored Marc Peabody committed
`…are also in about_array_assignment.rb`
3. Robert Osborne authored Marc Peabody committed
4. Robert Osborne authored Marc Peabody committed
5. Robert Osborne authored Marc Peabody committed
`…the first def.`
6. Robert Osborne authored Marc Peabody committed
7. capitalist authored Marc Peabody committed
8. 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```
9. Marc Peabody authored
`…/master`
10. Marc Peabody authored
`…alcolm`
Commits on Mar 18, 2009
1. unknown authored
`…shed test and also Bulldog.growl method, which becomes obsolete.`
2. unknown authored
```…ith the testing order.

Using the same class name as the other Triangle Assignment was affecting the testing order, causing this assignment to show up before about_exceptions.```
3. unknown authored
`Asserts on hash.keys or hash.values can not be relied on as the order is random (I had an expected values of [:two, :one] when I got to that test).`
Commits on Feb 7, 2009
1. caius authored
Commits on Jan 28, 2009
1. snowblink authored edgecase committed
```Ensuring that later class method definitions don't mess with earlier tests.
Renaming test to reflect that other objects are not affected by singleton methods on objects.

Signed-off-by: edgecase <github@theedgecase.com>```
2. snowblink authored edgecase committed
`Signed-off-by: edgecase <github@theedgecase.com>`
Commits on Jan 26, 2009
1. Joe O'Brien authored
2. Joe O'Brien authored
3. Joe O'Brien authored
4. Joe O'Brien authored
`…them into chapters`
5. Joe O'Brien authored
6. Joe O'Brien authored
7. Joe O'Brien authored
8. Joe O'Brien authored
9. Joe O'Brien authored
Something went wrong with that request. Please try again.