Thread: help
View Single Post
  #13 (permalink)  
Old 12-18-2007, 03:29 AM
joz_12345 joz_12345 is offline
Member
 
Join Date: Dec 2007
Posts: 17
joz_12345 is on a distinguished road
I'm guessing in my panel class I am going to have to have something like:

Code:
private static final int ROWS = 6; private static final int COLS = 6; private static final int SQUARE_SIZE = 50; //50 pixels per square - 36 in total
And then to create board size i could have:

Code:
private static final int WIDTH = COLS*SQUARE_SIZE; private static final int HEIGHT = ROWS*SQUARE_SIZE;
would i be on the right track with this?

Last edited by joz_12345 : 12-18-2007 at 03:35 AM.
Reply With Quote