[Haskell-cafe] Implementing a MUD server in haskell

Ketil Malde ketil+haskell at ii.uib.no
Sun Dec 16 17:39:50 EST 2007


Jack Kelly <endgame.dos at gmail.com> writes:

> struct room{
>   ...
>   struct player * players;
>   ...
> };
>
> struct player{
>   ...
>   struct room * room;
>   ...
> };

Extreme programming (or maybe it was some other "agile" thingy)
suggests doing the simplest possible approach that could conceivably
work.  What about:

data Room = ..
data Player = ..
locations :: [(Player,Room)]

?

-k
-- 
If I haven't seen further, it is by standing in the footprints of giants


More information about the Haskell-Cafe mailing list