Luckily, after asking Pro. Heap and getting the exact meaning of boolean, and I suddenly felt everything is not so hard, and I could figure out each step with my group mates.
But everything was harder than what we thought, I did changes based on the knowledge I had and the instructions given to us, and I found that we still got many things wrong. I remembered our problem was the ball's y-direction. I did not realize the difference between the dx, and dy:
[(and (> (ball-dx b) 0) (past-right? b)) (- (ball-dx b))]
[(and (< (ball-dx b) 0) (past-left? b)) (- (ball-dx b))]
[else (ball-dx b)])
and
[(and (< (ball-dy b) 0) (past-top? b)) (- (ball-dy b))]
[(and (> (ball-dy b) 0) (past-bottom? b)) (- (ball-dy b))]
[else (ball-dy b)])
I put the same sign as showed in dx, so I got everything correct, but only this part bothered us for a long time. And with another student's help, we figured out what was our problem. Even though I knew this mistake was so stupid, but it was always good to learn from our own mistake, so after finding out our mistake, I understood all the steps we did. So I felt that I got closer to the world of computer science, which made me really happy.
And as we tried and asked TA about the key-press, we finally also got the answer for key control of the ball. Now, I am really proud of what we did and what we learned from this class. It does not matter whether the material we learned is real computer programming or not, at least we can develop our ability to explore things we do not know, and we get improved on working with other people. So I really appreciate the way Pro.Heap teaches us, and I will keep learning carefully, and I will definitely love computer science more!!!


http://terrytaktincheung.blogspot.ca/2013/03/csc-104-week-7.html
ReplyDeleteFor this SLOG, I find some common parts. It is the project 1!!! I have to say, for this project, this is the first time we really focus on a real project for computer science. It really makes stuck for a long time! But luckily, with my group member's help, I got it done. I really appreciate Prof. Heap giving us this kind of opportunity for us to work together and do brain storming. I really enjoy the process.