Dr. Taylor's Support Forums

You are not logged in.

#1 2007-10-04 11:50:21

eric_hein
Member
From: 780 Eastern Ave. West Bend WI
Registered: 2007-09-04
Posts: 6
PM

Lab 4 challenge

I'm attempting to complete the challenge assignment on Lab 4. It seems like the ball will stop on the blue square even if I don't tell it to. This is a problem, as there are often squares past the goal that it needs to color. Is some other place in the other classes telling the ball to stop here?

Could be my problem too, I'll keep looking.

Offline

 

#2 2007-10-05 09:32:47

JackH
Member
Registered: 2007-09-05
Posts: 2
PM

Re: Lab 4 challenge

In the original code, the first if statement was the one that checked for the blue square. Did you move this to the last step? You may also want to adding in a booleans that states that it should not stop unless both the "top" and "bottom" have already been hit.

At least that is what i would look into doing

hope this helps some.

Jack

Offline

 

#3 2007-10-05 21:55:27

taylor
Professor
From: Milwaukee, WI
Registered: 2004-08-30
Posts: 266
PM  Website

Re: Lab 4 challenge

As I mentioned in class, there was a problem with the code provided in the .zip library had a bug.  Downloading the revised .zip file may solve the problem.

Offline

 

Board footer

This website is not owned or managed by the Milwaukee School of Engineering.

© 2001-2007 Dr. Christopher C. Taylor, et. al., • Office: L-343 • Phone: 277-7339 • npǝ˙ǝosɯ@ɹolʎɐʇ