Hello everyone
I am Varun and am very new to
Java and have only seen and implemented a few small codes till dates.For an assignment I have been given the work to implement a game which is called brickus.I have been provided with a defaultmodel.jar file ,defaultUI.jar ,and defaultinterface.jar files.The defaultmodel file is there and the game runs using it but I am required to construct a new model file with two classes in it that are model and piece.The game is pretty easy.there is a 14 by 14 grid and the pieces are to be placed on it in turns by two players.There are certain rules of doing this like they should not overlap or go out of the grid.There are 21 pieces given to each player and they are required to take turns in placing pieces(2 different colours for 2 players)on the same board and whoever has more number of pieces wins.Now the pieces are different kinds in shape like four blocks in a row or T shaped or Z shaped etc. I am required to write the two classes for my own model and to do that I am required to "implement" the interface in the class.Doing that gives me the methods which have been used and I am required to fill them in.For the piece class I get these methods.
could someone help me understanding how I need to construct the piece using these methods.
Also the model class is this