Code Monkey home page Code Monkey logo

Comments (5)

opqdonut avatar opqdonut commented on May 27, 2024 1

I tried to add a clarification about the coordinate system earlier in commit b88f788 – perhaps you're working on an older version of the exercises? Apologies for the confusion and I'd be glad to make this even clearer if you have a suggestion!

from haskell-mooc.

muzimuzhi avatar muzimuzhi commented on May 27, 2024

I think the test has adapted, see 5bb4294.

from haskell-mooc.

timmyjose avatar timmyjose commented on May 27, 2024

@muzimuzhi Thank you for linking that commit - it helps understand the situation better.

Another interesting bit is that the test file has this line of code for the given exercise (which I had wrongly marked as exercise 4 instead of exercise 3, fixed now!) - conjoin [checkShape x y True rect | x <- [x0..x0+w-1], y <- [y0..y0+h-1]]

So it it does take values in the range [x0, x0+w) and [y0, y0+h). So my assumption was right, and as per your commit link, they did have the intention of modifying the expectation to be that of a rectangle whose upper-left coordinates are given, but in the "screen coordinate system".

I think the text of the question should be updated to make it consistent - either mention that this is the "screen coordinate/graphics coordinate system" with the given coordinates as the upper-left corner of the rectangle, or that the given coordinates are for the bottom-left corner (assuming the normal Euclidean coordinate system).

from haskell-mooc.

timmyjose avatar timmyjose commented on May 27, 2024

I tried to add a clarification about the coordinate system earlier in commit b88f788 – perhaps you're working on an older version of the exercises? Apologies for the confusion and I'd be glad to make this even clearer if you have a suggestion!

Thank you for clearing that up! I must admit that it's my mistake as I had not read that part at all. I should have read the comments in the exercises in order.

Since the comment explains the coordinate system in use, I don't think there is really anything that should be changed (especially seeing as to how no else has mentioned it), so I'll close the issue now.

Thanks for the help, @muzimuzhi and @opqdonut, and sorry for the unnecessary confusion! :-)

from haskell-mooc.

timmyjose avatar timmyjose commented on May 27, 2024

Closing since it is a non-issue. The comments in the file mentions how the coordinate system is supposed to work, and I failed to read it.

from haskell-mooc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.