• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

brickus game help with logic and how to make a class

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please Use Code Tags.
 
varun vikram
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is real sorry.No one can help ?
 
Rob Spoor
Sheriff
Posts: 22781
131
Eclipse IDE Spring VI Editor Chrome Java Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I can understand .Sorry about that.
 
Beware the other head of science - it bites! Nibble on this message:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic