Hi all.

I'm working on a multiplayer checkers game in Qt and I wonder what board and pieces representation should I implement.

Currently, I have a main window class responsible for GUI and network connection. It contains an object of class Board (based on QGraphicsScene). Board class contains an array of 32 objects of class Square (based on QGraphicsItem) and an array of 24 objects of class Piece (based on QGraphicsItem). I thought to create access methods (to squares and pieces) in Board class and add needed members to square and piece classes (ident, pointer to occuping piece for square and color, type, pointer to occupied square for piece). In my idea piece should be responsible for checking for possible moves and making them etc.

Is that good idea? I wonder wheter I should bind game logic and graphical interface that much. Do you have any advices or other solutions to this problem? This is my first "serious" application and I'm confused a little. Thanks in advance for your help and sorry for my poor english.