Sunday, November 2, 2008

Week 2

27 Oct
A break from work because it's a public holiday.

28 Oct
Back to work at IHPC and we shared our ideas to integrate with lightdraw when Kevin came for an update in the morning. So after discussion, we decided 4 games:
  • 4 Player Pong
  • Memory Game
  • Scrabble
  • Sudoku
However, after lunch Kevin had a change of plan. Instead of the 4 games that we discussed, we will be doing 2 - a puzzle game and 4 player pong because it would require larger screen as that was why lightdraw was initially developed for.

So we were divided into groups, Wilson and Ryan will be developing the 4-player pong game and Leonard and I will be doing the puzzle game. And so leonard and I tried to find some open-source codes online but there isn't any results until Kevin came and told us that it would be easier to write our own code as we may not be able to easily understand the codes found on the web.

Sometime in the mid afternoon, we had a course on C++ taught by Ming Hong and Cheng Teng and at the end of the day, this is what we have done.


29 Oct
We finally started on the development of the puzzle game. We had learn how to set the an image area of interest today so as to crop the images into pieces so that it would look like a PUZZLE!! At the end of the day, we had manage to load, crop and show all sub-images on the window. Not to forget the other team doing the pong game. They had their UI out!! can't wait to play these applications on lightdraw!!Great Start!

30 Oct
Today, we had manage to randomly place the sub-images on the screen and I also managed to allow users to define the image path and the number of pieces that they are comfortable with. Thanks to Ming Hong, that was great help.

31 Oct
When we were all busy working, its already Friday!! hmm.. today we had manage to randomly rotate the puzzle when it first start. Also, we had manage to resize the image of the puzzle regardless of the image size defined by the user.  Most importantly, we had managed to drag the pieces at the end of the day and The "Pong" team isn't losing out either, they had managed to move the paddle using key events and able to check collision. Well, really had learn alot from the people at IHPC. I can only say we are like a baby learning how to walk.

Reflection
This week, I would say it was more on hands-on and communication skills. Had a one-day intensive C++ and OpenCV course. Communication skills had always been a problem for me as my english had always been poor. But this will not stop me from learning and improving. I can see that Kevin is trying to help me alot in that and I'm also trying hard to improve. Also, we had learn how to use openCV functions such as 2D/3D array, resize image, image rotation, taking in user input from command prompt, random, setting image area of interest and more. Functions such as 2D/3D arrays are what we seldom use when doing programming in school but was commonly used in the industry. We also learn how to write a GUI application without the use of any IDEs. From this, we actually realised that we depend too much on IDEs when doing programming with GUI. Thanks to the fundamentals that the school had provide us that allow us to understand the complex algorithms in the shortest time.

No comments: