Layer 2 protocol description
The DamExchange layer 2 protocol describes the contents and
the flows of the messages that are exchanged between two Draughts
computer programs. The first character position of each message
denotes the message type.
The messages consist of character strings of 1 to 127
characters of the ASCII character set (values 1 to and including
The dialogue between the two Draughts computer programs is as
- The Initiator sends a GAMEREQ message (containing
information about the game to be started) to the
- The Follower answers with a GAMEACC message.
- Next, MOVE messages (containing the played moves) are
exchanged between the two Draughts computer programs.
This occurs strictly alternating, also in case of forced
moves, MOVE messages are exchanged.
- This process continues until one of the players sends a
GAMEEND message instead of a MOVE message.
- This GAMEEND message is confirmed by the other program by
sending back a GAMEEND message.
- For interactive games (human against computer) the
possibility to move back exists by using BACKREQ and
- Each moment in time, also inbetween two games, the
Initiator as well as the Follower can send a CHAT
If desired, the Initiator can start a new game over and over
by starting from the beginning by sending a GAMEREQ message.