If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Nine Mens Morris layer propeties query

I have started using Java very recently, and have been assigned to make a program for the board game, nine mens morris. This seems to be extremely outside of my skill level, so apologies if my solution seems like a strange way to achieve what Im trying. Basically, I have set up 24 layers, one for each space on the gameboard where a piece can be placed. I had planned to set up properties "black", "white" and "blank". The idea was to make it possible to set the layers as "black" or "white" on click, dependent on whos turn it is, with the original state being "blank". Then I intended to use an "If" statement to set the piece placed on the gameboard dependent on the state of the layer. Would anyone be able to tell me how I would be able to set up such properties and assign them to a layer when the layer is clicked on?

I think you may be right. It will reduce the amount of marks I can achieve in my assignment, but I suppose a functional, simpler game will be worth more than a complicated broken one anyway. Thanks for the help!