> Hi everyone,
>
[quoted text clipped - 14 lines]
>
> Hamzah Khan
> a
> Are you sure MVC is suitable for this problem? Do you have any data that
> could be considered your "model"?
I'm actually just using MVC just to see how to use it, but the game is
supposed to a board on which there are "pegs" which will be removed by
the computer.
I'm considering the model to be the board.
Is that not correct? :S
It should still work OK with MVC, although I guess its not the best
place to use it, right?
Hamzah
- --
M. Hamzah Khan
Website: http://www.hamzahkhan.com
Corona4456 - 04 Jun 2007 23:55 GMT
Your board is your view, the status of the board (i.e. which pegs are
still on the board and where) is the model, the computer is your
controller. User clicks on a peg on the view, the computer reacts to
that click and tells the model to remove the peg at the given position
and the model then tells the view to update itself.
M. Hamzah Khan - 05 Jun 2007 09:28 GMT
> Your board is your view, the status of the board (i.e. which pegs are
> still on the board and where) is the model, the computer is your
> controller. User clicks on a peg on the view, the computer reacts to
> that click and tells the model to remove the peg at the given position
> and the model then tells the view to update itself.
Ahhh that makes sense now.
Thank you :D
Hamzah
- --
M. Hamzah Khan
Website: http://www.hamzahkhan.com