This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am creating a checkers/draughts game in swing and am a bit unsure about whether to use MVC or not in the design.
This is a project for college and the main focus of it is the algorithms that decide on the next move for the computer, not the UI.
There will be a main JPanel onto which the board will be drawn. After a move is made by the human a MouseListener method will signal to the computer to compute the next move.
This will be done in a class that extends SwingWorker.
Model : In this case would be game state, number of pieces etc.
View : The UI for the game, would call the controller to calculate the next move.
Controller : The part of the game that decides on the next move.
Do I need to do much more on the design, I don't know where to start?