Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

brickus game help with logic and how to make a class

 
Greenhorn
Posts: 4
  • 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


 
Sheriff
Posts: 21974
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please Use Code Tags.
 
varun vikram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This is real sorry.No one can help ?
 
Rob Spoor
Sheriff
Posts: 21974
106
Eclipse IDE Spring VI Editor Chrome Java Ubuntu 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: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can understand .Sorry about that.
 
    Bookmark Topic Watch Topic
  • New Topic