• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

OO Chess

 
Ranch Hand
Posts: 393
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How should one improve his OO designing skills. I am trying to make an OO design for chess class.

As per my knowledge it should have the following classes

1. Player Interface & 2 generalized classes. It will have color as one of its attributes
2. Piece Interface - It will have generalized classes like Bishop, queen etc. Each class will have a method that return its move rules
3. Board Class
4. ChessManager class.

I am having a horrible time in taking this forward.

Any help towards this will be great.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are steps that come before OO design. One of the most important steps are the program's requirements. Once you have a good set of understandable and clearly written requirements, then you start with creating an OO model design. Then, once you have a design to work with, you start to write the code which implements the design.

1.1 Requirements

2.1 Design

3.1 Programming

1.2 Requirements

2.2 Design

3.2 Programming

1.3 Requirements

2.3 Design

3.3 Programming
reply
    Bookmark Topic Watch Topic
  • New Topic