Tuesday, April 1, 2014

CSC-10 Last Week & Programming project

      This week is our last week of the class. We need to be tested on flatten function in our tutorial. when I learned this material online. I found that it is easier than the material than filter functions because we did not need to figure it out by doing exercises. Flatten is used to get rid of the "list" structure and finally get a new list. Therefore, this is quite easy compared with the filter function. 
     On Tuesday lecture, we talked about the lambda function, which can express data without a number. I am quite curious about this material but I found it is too hard for me to understand by the end of the lecture with so little knowledge in computer science.
       Also, We need to do the second programming project for this course. I found that it is easier than the previous project because it covers the basic functions we have learned. Importantly, we do not need to think too much before generalizing the functions. The check-exepct gives me a lot of sense directly. At first, I cannot run this program nicely because of the error I made when I generalize the functions. After figuring out the mistakes, I can keep going and writing the rest of the program.
      I think the most important step in the project is to fix the handle-key function. When I press the right and left arrows, the cartoon will go up and down instead of right and left. Therefore, I need to change the number so that it can move correctly. After fixing this mistake and running the program, there is a forest and a cartoon. I can move it in a correct direction when I pressed the button.