Thursday, 9 May 2013

And he does his thing again ;P

Ryk gave me another way to program the thing, so I'm going to change around my code again to accommodate that, cause it's a lot more efficient. 

Basically, what his way, to do it was: 

Use a class to extend all the JLabels. 

To print all the for loops to the screen, name all the properties in order and a counter at the same number. Therefore, you can use a loop to create the labels (in an array), and do it individually for north, east, south and west. 

He also said that it 'twas possible to do it for both east and west at the same time but I was too confuzzled..

Properties :)

So here is the official gameboard on paper and it makes it a lot easier to program :) 

Hurray! :D

So I've finally finished the game board set up. I'm going to have to program the layeredPane part, so that when the pawns move, the user can see their pawns. But for now, at least, it's amazing


Now, I'm going to have to add all these labels into the class declaration where when the user clicks the properties, a frame will show up with the more massive pictures. 

And I formatted it much better, so here is the official gameboard: