Erlang (programming language)/Tutorials/otp design

Example program for the OTP behaviour, gen_server.

Here is an example program using gen_server to create a simple text game.