[Haskell-cafe] Tetris

Lennart Augustsson lennart at augustsson.net
Tue Nov 20 19:11:26 EST 2007


I implemented Tetris in LML long before Haskell existed.
It was text based, but looked good with a custom font. :)

Haskell has no problem with state, it's just explicit.

  -- Lennart

On Nov 19, 2007 9:25 PM, Andrew Coppin <andrewcoppin at btinternet.com> wrote:

> If you were going to implement Tetris in Haskell, how would you do it?
>
> (For that matter, has anybody already *done* it? It would probably make
> a nice example program...)
>
> I'm particularly interested to know
>
> 1. How exactly would you do the graphical components? (Presumably
> there's some deep trickery with Gtk2hs that can draw free-form stuff
> like this.)
>
> 2. How do you implement a program that is fundamentally about state
> mutation in a programming language which abhors state mutation?
>
> _______________________________________________
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/haskell-cafe/attachments/20071121/d52515f1/attachment.htm


More information about the Haskell-Cafe mailing list