File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes brickus game help with logic and how to make a class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "brickus game help with logic and how to make a class" Watch "brickus game help with logic and how to make a class" New topic
Author

brickus game help with logic and how to make a class

varun vikram
Greenhorn

Joined: Sep 13, 2009
Posts: 3
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

Joined: Oct 27, 2005
Posts: 19790
    
  20

Please Use Code Tags.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
varun vikram
Greenhorn

Joined: Sep 13, 2009
Posts: 3
This is real sorry.No one can help ?
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19790
    
  20

Please show some patience. Yesterday was Sunday, so perhaps there simply weren't many people who have read it yet.
varun vikram
Greenhorn

Joined: Sep 13, 2009
Posts: 3
I can understand .Sorry about that.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: brickus game help with logic and how to make a class