Fixed right angled triangle side ordering for area#161
Fixed right angled triangle side ordering for area#161TRManderson wants to merge 4 commits intoCSSE1001:masterfrom TRManderson:right-angle
Conversation
|
You'll need to update the This pull request would also require changing the tutorial task (in |
|
This PR actually fixes the tests to match description.html as previously the first vertex wasn't the right angle. |
|
Oh, whoops... On 28 April 2015 at 11:21, Tom Manderson notifications@github.com wrote:
|
|
Suggestion (possibly too mean for what already looks like a challenging problem): tweak the alternate test for 'area' so that the vertex list is given clockwise instead of anticlockwise. e.g. This would catch students who don't take the absolute value of the distances. (Edit: clarified which test to tweak) |
|
Actually, now that I've thought about it for another few seconds, the right-angled-triangle area question actually requires some non-trivial geometry if the right angle is not aligned with the x- and y- axes. [I had an example, but it was wrong, so I'm editing it out. You get the idea.] |
|
Yeah, euclidean distance between each point and the right angle. Not particularly simple. |
|
Hi jgat, |
|
I suggest tweaking the problem description (though you might have to deal with students who've already finished the task complaining that it gets made easier after they finish it). Suggested new version of the task:
|
|
I think this is the way to go - the question wasn't supposed to be about geometry after all |
|
Agreed. It wasn't meant to be difficult. If this looks like too much of a change for students who've already done On 28 April 2015 at 14:04, Peter Robinson notifications@github.com wrote:
|
As per emails between Jon/Peter this morning