Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

OO Chess

 
Nikhil Jain
Ranch Hand
Posts: 389
  • Mark post as helpful
  • send pies
  • 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.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic