I'm trying to build a Checkers/Draughts game in C#. The project is build using Windows Form.
What I did is to decompose the game board. So I have a "Board" class. and "BoardSquare" class (this class draw a square in the right position and color)
The board is build from 8 X 8 BoardSquare.
I thought about this solution, the square needs to know if it's empty or not, and if it is not empty it means that there is a "GameSoldier" on it.
So when I want to move the soldier to another square I need to click on the current square to get the GameSoldier, and then to press on the destination square.
So what I want to do is to add mouse functionality to the BoardSquare class to get the properties of the squares, like positions. Any ideas?