Talk:Box the compass: Difference between revisions

(→‎Why C needs fixing: Explanation of terms)
Line 82:
::::::: I disregarded 4 because with it there would be no clear interpretation for the task (what does "instead use these values" even mean? Redefine what "North" is?), that's not my wrongdoing. Like I said, before worrying about what the column is, why don't you clarify what the ''table'' is, and why are we given a list of 33 strange numbers? Also, if the meaning is "not given", on what basis can you claim the values are incorrect to begin with? --[[User:Ledrug|Ledrug]] 20:30, 28 November 2011 (UTC)
::::::::"The table" is a list of 32 ranges of degrees ("arcs"?) on a compass (for some reason they chose to split "North" into two rows with the same number) and their names. The "number" column (also called "index" in other parts of this discussion) corresponds to the numbers on the compass picture on that article ("1" being "North"). The "strange numbers" are test values we can use to make sure that the algorithm properly maps values to the given named ranges. Since there is no range #33 on the compass (which should probably be mentioned or maybe even duplicated in the task), no given value can correspond to #33. The last value falls within range #1, "North". --[[User:Mwn3d|Mwn3d]] 20:39, 28 November 2011 (UTC)
::::::::: In that case perhaps the index should be tied to the result rather than being taken mod 32. [[User:CRGreathouse|CRGreathouse]] 21:43, 28 November 2011 (UTC)
::: Yes, it's a pretty silly task in that respect. I found it easier to change the code than to argue for the obvious numbering. [[User:CRGreathouse|CRGreathouse]] 19:01, 28 November 2011 (UTC)
:::: It indeed takes a few keystrokes to make the output compliant--but compliant to ''what''? In any event, I'm done arguing, I've said more than enough already. --[[User:Ledrug|Ledrug]] 20:30, 28 November 2011 (UTC)