[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
   http://www.haskell.org/haskellwiki/WxAsteroids

Regards,
Henk-Jan van Tuyl


-- 
http://Van.Tuyl.eu/
http://members.chello.nl/hjgtuyl/tourdemonad.html
--


More information about the Beginners mailing list