Quantcast

Got Homework?

Connect with other students for help. It's a free community.

  • across
    MIT Grad Student
    Online now
  • laura*
    Helped 1,000 students
    Online now
  • Hero
    College Math Guru
    Online now

Here's the question you clicked on:

55 members online
  • 0 replying
  • 0 viewing

susanjrobertson

I am extremely behind on the fall course - just now doing Homework 4 and then moving to the tetris project - anyone have working code for getting the wheel to animate in 4.1.3?

  • one year ago
  • one year ago

  • This Question is Closed
  1. MOOC-E
    Best Response
    You've already chosen the best response.
    Medals 0

    @susanjrobertson, glad to see you are still working. The third sequence is just about at this point now, so there should be some folks working on this problem from that group about now. Ping me if you don't get an answer some time relatively soon.

    • one year ago
  2. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    hi susan, the mooc-e suggested i work with you as we are at the same place. i've posted the wheel code at github https://gist.github.com/davekpython/4698027. i'm now trying to build the car and having little luck. thoughts? dave

    • one year ago
  3. susanjrobertson
    Best Response
    You've already chosen the best response.
    Medals 1

    @dave - thanks for posting this. I'm still working through getting the wheel to animate - I'm getting errors in idle when I run the code, the biggest one telling me that 'after' isn't defined. So I'm still trying to get this working. Hopefully I'll have some time today :)

    • one year ago
  4. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    i just added a cleaner version of wheel https://gist.github.com/davekpython/4715546 i used to get that after comment as well. this one animates on my idle.

    • one year ago
  5. susanjrobertson
    Best Response
    You've already chosen the best response.
    Medals 1

    @davek - thanks so much for this, I think I understand what is going on here and am moving on to the car - we'll see what happens :)

    • one year ago
  6. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    let me know how the car goes. i can create a car with definitions but am having trouble creating a car class and within it, making the car and animating it.

    • one year ago
  7. susanjrobertson
    Best Response
    You've already chosen the best response.
    Medals 1

    I'm having a lot of trouble with classes still and how they work. I did find another question on there which linked to an animated car, but didn't want to just look at an answer. I'm actually going back to the MIT course and watching the lecture on classes (was never assigned in the MOOC) to see if that helps me understand more.

    • one year ago
  8. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    good idea. i'll take a look too. the mooc class seems to drop the ball at week 7.

    • one year ago
  9. susanjrobertson
    Best Response
    You've already chosen the best response.
    Medals 1

    yeah - lecture 10 starts with exceptions, classes and iterators about 20 minutes in.

    • one year ago
  10. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    cool. thanks.

    • one year ago
  11. susanjrobertson
    Best Response
    You've already chosen the best response.
    Medals 1

    @davek So I watched quite a bit more lecture and I figured out the car.py and the next one the Blocks to begin the tretrominoes.py file - I admit I did look for some help online, but it's making a bit more sense to me. Let me know if you want to see the code and I'll make a gist of it. I also think the MOOC definitely should have included more lectures for these exercises - it's a big leap from week 6 to week 7 without the lecture I think.

    • one year ago
  12. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    great. i'm just finishing up the recitation 5 (very good after minute 30). the lecture was good as is the recitation. clarifying a lot. i'm going to try to code it after. i'm guessing i'm going to need some help but we'll see. well done.

    • one year ago
  13. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    yup, i'm stuck at drawing the rectangle. any chance i can look at the code?

    • one year ago
  14. susanjrobertson
    Best Response
    You've already chosen the best response.
    Medals 1

    Here's a gist of my car.py - https://gist.github.com/susanjrobertson/4728527 I agree with you that lecture 10 and 11 and also recitation 5 was super helpful. I also took a good look at the graphics.py to understand what classes were in there that I could use in the car.py. It's also heavily used in the Blocks exercise.

    • one year ago
  15. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    Wow. Great! got it, but i needed to peak a few times. my use of self. was throwing me off and combining stuff from both graphic and wheel in same def makes all the sense. thank you.

    • one year ago
  16. davek
    Best Response
    You've already chosen the best response.
    Medals 0

    also like the if y<0. didn't use it but can see why it could and probably will be useful soon enough.

    • one year ago
    • Attachments:

See more questions >>>

Your question is ready. Sign up for free to start getting answers.

spraguer (Moderator)
5 → View Detailed Profile

is replying to Can someone tell me what button the professor is hitting...

23

  • Teamwork 19 Teammate
  • Problem Solving 19 Hero
  • You have blocked this person.
  • ✔ You're a fan Checking fan status...

Thanks for being so helpful in mathematics. If you are getting quality help, make sure you spread the word about OpenStudy.

This is the testimonial you wrote.
You haven't written a testimonial for Owlfred.