Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

brickus game help with logic and how to make a class

 
varun vikram
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Use Code Tags.
 
varun vikram
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is real sorry.No one can help ?
 
Rob Spoor
Sheriff
Pie
Posts: 20492
54
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please show some patience. Yesterday was Sunday, so perhaps there simply weren't many people who have read it yet.
 
varun vikram
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can understand .Sorry about that.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic