% ag_server1.erl - (Silver) Adventure Game Server -module(ag_server1). -author('Alan G. Labouseur'). %-------- % Public %-------- -export([gameLoop/0]). gameLoop() -> receive 0 -> io:format("You are standing west of a house.", []), gameLoop(); 1 -> io:format("You come to the base of a large tree.", []), gameLoop(); Other -> io:format("Unknown locale: ~p. You are lost.", [Other]), gameLoop() end.