From: James Edward Gray II Date: 2005-09-03T00:31:10+09:00 Subject: Re: Suggestion for future quizzes (was: Re: [SUMMARY] Word Chains (#44)) On Sep 2, 2005, at 8:07 AM, Benedikt Heinen wrote: > > Since the ruby quiz is about specific problems, not about the same > kind of basics that happen all over, how about also specifying a > minimal code skeleton and a short sentence about how the scripts > will be tested? e.g. for the word chains quiz, if the quiz itself > would have provided: > > > Skeleton: > - > unless ARGV.size == 3 > puts "usage: #$0 dictionary word1 word2" > exit 1 > end > > dictfile=ARGV[0]; > fromword=ARGV[1]; > toword=ARGV[2]; > > > ## INSERT YOUR CODE HERE I really don't want to tell anyone how to write their code. That rules out interesting options like the CommandLine::Application variant recently posted. > - > Code will be tested with the following command(s): > > > ./yourscript.rb /usr/share/dict/words duck ruby I will definitely be more careful with testing in the future. Thanks for the suggestions! James Edward Gray II