http://qs321.pair.com?node_id=168972


in reply to Re: Golf Soccer Stats
in thread Golf Soccer Stats

Close. But you return ($wins, $ties, $losses). The Game is ($wins, $losses, $ties). I only know this because I fell into the same trap, and switching it arround ain't easy.

update: um ... ain't easy ... uh ... err ... unless your jynx! Yeah, that's the ticket! That's what I ment to say.

Wow! I am continualy enlightened.

Replies are listed 'Best First'.
Re: Golf Soccer Stats
by quadzero (Initiate) on May 25, 2002 at 01:27 UTC
    Not looking to start a war cuz i'm as new to perl as they come but still... this particular golf challenge doesn't *explicitly* say that the order of the results returned is significant. I agree that it does list them in the order w/l/t, but it doesn't say that they *must* be returned in this order.

    As in logic puzzles, i think it makes good sense not to assume anything at all. For example, if the goal was to return a string with the characters "a", "b" and "c" both surrounded with, and separated by, a tilde character ("~"), would you assume that the "correct" results looked like this: "~a~b~c~", or would "~b~a~c~" also qualify?

    In my opinion (and I do mean *just* my opinion :-) both of the above examples qualify as legitimate because the challenge specified the content without specifying the order of the letters. Had it said something along the lines of "return the characters 'a', 'b' and 'c' (in that order) both surrounded by....", then I would certainly agree that the order was an explicit and significant aspect of the solution.

    Anyway, as you've already noticed, if the original soccer score order *was* actually significant, jynx (sp?) took care of that for us.

    Again, not looking for a fight here, just sharing my point of view.

    Cheers! 8-D
    quadzero (at) users (dot) sourceforge (dot) net