[Haskell-beginners] How to model this in haskell, get rid of my OO thinking?

Henk-Jan van Tuyl hjgtuyl at chello.nl
Wed May 19 04:02:06 EDT 2010

On Tue, 18 May 2010 05:21:38 +0200, <haskell at lonely-star.org> wrote:

> Hi,
> I learning haskell and I am trying to understand how model certain
> things in it.
> As I have been doing a lot of C++ programming so far. Let's imagine we
> want to write a game. In the game there are spaceships and rocks (image
> something like astroids :) ). Now both spaceships and rocks have a
> position and can move. Spaceships can shoot, while rocks can explode.

There is a well documented implementation, called wxAsteroids; see

Henk-Jan van Tuyl


More information about the Beginners mailing list