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
127 only).
The dialogue between the two Draughts computer programs is as
follows:
- The Initiator sends a GAMEREQ message (containing
information about the game to be started) to the
Follower.
- 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
BACKACC messages.
- Each moment in time, also inbetween two games, the
Initiator as well as the Follower can send a CHAT
message.
If desired, the Initiator can start a new game over and over
by starting from the beginning by sending a GAMEREQ message.
Messages:
DamExchange Home