Commit Graph

65 Commits

Author SHA1 Message Date
Jim Weirich
2c3b65ec79 Updated require with yucky File.dirname(__FILE__) hacks. 2010-08-16 14:40:37 -04:00
Jim Weirich
fbd36f6b0d Reworded question. 2010-08-16 13:59:58 -04:00
Jim Weirich
56206e0a41 Removed unneeded check for no args. 2010-04-20 16:26:57 -04:00
Jim Weirich
308ad5d9c5 Added constants to koans path to enlightenment. 2010-04-20 16:26:18 -04:00
Jim Weirich
c40424e9a4 Updates source to be consistent with the _n_ changes. 2010-04-20 16:25:19 -04:00
Jim Weirich
f0b1560f34 Added about_constants 2010-04-20 16:17:34 -04:00
Jim Weirich
3b824d0e86 Modified to be less dependent on exact method and constant counts. 2010-04-20 16:17:24 -04:00
Jim Weirich
110ff38b3f Added a numeric fill in method (_n_) 2010-04-20 16:16:55 -04:00
Jim Weirich
1d1ab85777 Generated new koans directory. 2010-01-15 09:53:28 -05:00
Jim Weirich
d4c9150453 Added swap example to parallel assignments 2010-01-15 09:51:50 -05:00
Jim Weirich
ec6458e174 Renamed if test to avoid method name conflict. 2010-01-15 09:46:17 -05:00
Jim Weirich
6c69bcb0ef Added [1,1,3] case for triangles. 2010-01-15 09:39:48 -05:00
Jim Weirich
6052c776bc Use .values rather than .keys in values test (http://www.pivotaltracker.com/story/show/2177802) 2010-01-14 14:31:30 -05: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
bdc9e2a772 Renamed explict to explicit (http://www.pivotaltracker.com/story/show/2070657) 2010-01-02 22:25:05 -05:00
Jim Weirich
e21e46bdf9 Renamed test (http://www.pivotaltracker.com/story/show/2072574) 2010-01-02 22:22:38 -05:00
Jim Weirich
2483665fb9 Addd comments to gen and regen tasks. 2010-01-02 22:21:49 -05:00
Jim Weirich
a22b5fe9dc Some minor reformatting. 2010-01-02 22:21:33 -05:00
Jim Weirich
f68bd3ca8f Updated try ruby link 2010-01-02 22:21:12 -05:00
Jim Weirich
e639fb315f Added pivotal tracker address to readme. 2010-01-02 22:20:54 -05:00
Jim Weirich
eaccb51af6 Added tracker information to readme. 2009-12-31 13:37:51 -05:00
Jim Weirich
2a116925a0 Updated tryruby link to tryruby.org. 2009-12-24 02:33:08 -05:00
Jim Weirich
a0ff4e58f7 Fixed typo in tribute to Ara Howard. 2009-12-24 02:27:02 -05:00
Jim Weirich
3958b3c9e5 Updated first test to properly fail on the first run. 2009-12-22 22:31:55 -05:00
Jim Weirich
690ca4c022 Updated Readme with ref to about_asserts. 2009-12-22 22:26:04 -05:00
Jim Weirich
26639d58ec Fixed typos in Greed Rules. 2009-12-22 22:25:47 -05:00
Jim Weirich
5a68c779e4 Added ref to Little Lisper. 2009-12-21 16:57:46 -05:00
Jim Weirich
ac6f38a804 Fixed rules typos. 2009-12-21 16:45:33 -05:00
Jim Weirich
a7382f3940 Changed minor constant count change. 2009-12-21 16:37:06 -05:00
Jim Weirich
4fb9f8fb9f Fixed broken assert in src, so that it is still broken in koan 2009-12-21 16:36:48 -05:00
Jim Weirich
5e2f80770d Added Main readme to koan directory. 2009-12-21 16:31:42 -05:00
Jim Weirich
e9e079e262 Cleaned up src directory 2009-12-21 16:31:11 -05:00
Jim Weirich
0b58d57399 Updated Rakfile to copy the main readme into the koan directory. Removed SOURCE directory reference. 2009-12-21 16:30:50 -05:00
Jim Weirich
4fdf060360 Ignoring the dist directory 2009-12-21 16:30:07 -05:00
Jim Weirich
f05d9ee1ac Merged src directory with existing koans. 2009-12-21 16:17:32 -05:00
Jim Weirich
c651dd5eba Added back require rake/rdoctask 2009-12-21 15:07:03 -05:00
Jim Weirich
508a1d812e New Rakefile 2009-12-21 15:03:28 -05:00
Jim Weirich
47c6c6f8da Added src directory 2009-12-21 15:03:20 -05:00
Bret Pettichord
f3af22b96f rename file to match the name of its Koan class 2009-10-12 23:46:33 -05:00
Ken Barker
9563a4ef27 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.
2009-10-09 18:06:47 -04:00
Corey Haines
420013399e fix url for tryruby 2009-10-08 13:26:43 -04:00
RFelix
8de356c598 Removed duplicated array assignment tests from about_arrays.rb which are also in about_array_assignment.rb 2009-10-08 13:24:13 -04:00
Robert Osborne
73805b3e0e re-wrote a bit of explanation of red/green/refactor 2009-10-08 13:19:46 -04:00
Robert Osborne
e225b1612c fixed typoo in def test_any_ruby_expression_my_be_interpolated 2009-10-08 13:19:07 -04:00
Robert Osborne
b3226809ad method name test_if_then_else_statements was duplicated, overwriting the first def. 2009-10-08 13:18:41 -04:00
Robert Osborne
dbaadf80b7 Edited GREED_RULES 2009-10-08 13:17:00 -04:00
capitalist
e871052dd3 Fix typo 2009-10-08 13:09:14 -04: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
Marc Peabody
d9e77d26f2 Merge branch 'master' of git://github.com/caius/ruby_koans into caius/master 2009-10-08 10:35:50 -04:00
Marc Peabody
17ac70bd4d hash keys and values must assert against sorted arrays - thanks gregmalcolm 2009-10-08 10:16:57 -04:00