Here is general pseudo code for the control program (rough draft)

by

                    Main Program Pseudo Code

Initialize. This is complicated but will result in the board being loaded and the current player being logged in.

Report referee calls made to opponent

do
  Get LegalMove
  - Checkmate or resign? goto TheEnd
loop until legal move made

Save for possible file transfer via email, etc.

Exit (Other player gets file and starts program)

TheEnd:

Display board (both player's pieces)

Exit

==============================================

GetLegalMove:

Move=DisplayBoard ("White" or "Black") (SHARED Board unchanged)

Select case LegalMove(Move)
Case 0:
  announce "Not possible" to player
  record that was said
  return indicating no legal move found
Case 1:
  announce "Illegal" to player
  (don't record that)
  return indicating no legal move found
Case 2
  move piece on SHARED board
  (remembering en passent, king and rook)
  return indicating legal move made

Posted on Dec 22, 2005, 10:05 AM
from IP address 68.98.164.60

Respond to this message   

Return to Index


Response TitleAuthor and Date
Specifications for DisplayBoard on Dec 22
 Driver for DisplayBoard on Dec 22
  Integrated display board for game.Pete on Dec 30
   Couple of bugs (related) on Dec 30
    Not a bug, a feature...Pete on Dec 30
     Mouse driver added...Pete on Dec 30
      Great! Found one bug on Dec 31
       Not a bug, another feature...Pete on Dec 31
        Good on Dec 31
         If any move is legal - nope...Pete on Dec 31
   OK - Try this...........................................................Pete on Dec 31