There are actually two contributors to this blog right now—K and K. But yes, they are actually the same person: I associated two accounts with this blog just in case that I lose access to one of them. Since this blog has two contributors, I can no longer include the "About me" widget in the side bar, and this is why I have decided to create this page.
So it's time to introduce myself:

I am currently 16 years old, and am attending high school in Toronto, Ontario. Since school is probably the most important aspect of my life, you will probably see a lot of my posts being about school; these posts are usually for me to study for tests and exams, but can also be my thoughts on various things that occur in school. During my free time, I usually read, do computer programming, or just do random things on the Internet. I do not have interesting life experiences.
Nikita · 668 weeks ago
Randuff 13p · 667 weeks ago
Z.A. · 660 weeks ago
Thanks!
Terry · 598 weeks ago
brick=new GRect(BRICK_WIDTH,BRICK_HEIGHT);
brick.setFilled(false);
for(int row=1;row<=NBRICK_ROWS;row++){
for(int num=1;num<=NBRICKS_PER_ROW;num++){
int x=getWidth()/2-(BRICK_WIDTH*NBRICKS_PER_ROW+BRICK_SEP*(NBRICKS_PER_ROW-1))/2+num*(BRICK_WIDTH+BRICK_SEP);
int y=BRICK_Y_OFFSET+row*(BRICK_HEIGHT+BRICK_SEP);
add(brick,x,y);
}
switch(row){
case 0:
case 1:
brick.setColor(Color.RED);
break;
case 2:
case 3:
brick.setColor(Color.ORANGE);
break;
case 4:
case 5:
brick.setColor(Color.YELLOW);
break;
case 6:
case 7:
brick.setColor(Color.GREEN);
break;
case 8:
case 9:
brick.setColor(Color.CYAN);
break;
}
}
}
private GRect brick;
}
Terry · 598 weeks ago
I could not setup the bricks to the canvas in Breakout assignment.
Thank u very much
Dave · 464 weeks ago