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?
Then effectively three values are enough to represent empty place (0) and the players or there pieces (1 or 2) on the game board witch can be symbolized by a 24 length string.
It's perhaps interesting to fiind a representation which respects the possible rotations and symmetries...
Perhaps could you distinguish the three square with three 8 length string like var board='00000100 00222122 00111002'; for the position on this wikipedia page ?
I'm using javascript on Expression Web. This seems like a good solution, but I am basically completely new to java, I wouldn't know how to implement this.
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!
You gave me one idea. Here is an essay which is made to work on a mobile ...
But I am not satisfied with the question mark. I do not know how to manage an touch error ... etc.
Bookmarks