This Kata is shamelessly copied from the one for the Craftsmen-Coding-Contest.
To complete this Kata, your task is to implement a program that
STARTas UTF-8 encoded UDP message to a well-known port on a server
- listens for a reply message containing a simple mathematical task (on the port from which the start message was sent)
- calculates the result
- sends the result to the server
- repeats until message is either
ALL CORRECTor something like
3 WRONG, 2 CORRECT
The content of the messages are strings with the following structure:
<function> is one of
SUBTRACT. Parameters are integers. There are at least two parameters, but there can be more.
Example server messages are:
The structure of the expected response are:
The correct responses for the example server messages are respectively:
The goals of the Kata are to make you comfortable with the socket interface of your chosen language and the structure of a text-based protocol similiar to the protocol used in the Craftsmen-Coding-Contest.