Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Programming models in graphical chess interfaces

Author: Mark Boylan

Date: 14:33:32 02/18/06

Go up one level in this thread


On February 18, 2006 at 17:03:37, Federico Corigliano wrote:

>I'm doing my first steps in graphical programming and I need some help to
>understand how chess interfaces such as Arena are made.
>A friend tell me that all the communication between windows and internal process
>is made with the Document/View model. Is that right? If not, what model is used
>to coordinate all the communication between board, move history windows, chess
>engine process, etc.
>
>Federico


The typical pattern for such an application is called Model-View-Controller
(MVC). The model would embody the underlying data (document, game, position,
database, whatever). A view is some presentation of that model. And the
controller updates the views based on chages in the underlying model, and makes
changes to the underlying model based on user interaction with the view.

I believe that the term Document/View was popularized by Microsoft with Visual
C++ and means more or less the same thing as MVC.

 - mark




This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.