As a side-note, it might be interesting to use the Vec package on Hackage, since it seems to offer fast, unboxed linear algebra.<div><br></div><div><div><div><div><div><div><div class="gmail_quote">On Mon, Aug 17, 2009 at 2:01 PM, jean legrand <span dir="ltr"><<a href="mailto:kkwweett@yahoo.fr">kkwweett@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">As I've been warned, two dependencies (Common.Utils and Common.Vector) are to be resolved in order to use this Tetris code.<br>
They're part of the elerea-examples package (from hackage) but their access is not public so a solution is to modify the cabal file during installation.<br>
<br>
Another solution is to create a Common directory in the current directory, then decompress the source located in<br>
<br>
<a href="http://hackage.haskell.org/package/elerea-examples" target="_blank">http://hackage.haskell.org/package/elerea-examples</a><br>
<br>
and copy the two files Vector.lhs and Utils.lhs in Common.<br>
<div><div></div><div class="h5"><br>
<br>
> Hi Haskellers,<br>
> Here is my first real program in Haskell.<br>
><br>
> <a href="http://hpaste.org:80/fastcgi/hpaste.fcgi/view?id=8211" target="_blank">http://hpaste.org:80/fastcgi/hpaste.fcgi/view?id=8211</a><br>
><br>
> In fact, I'm not fully responsible because it's just an<br>
> adapted version of a Tetris Creighton Hogg had written for<br>
> Reactive/GLUT.<br>
> As the first version, it's a very simple game (no levels,<br>
> no points ...) but it's playable !<br>
><br>
> The major problem is when the board is full, the program<br>
> sadly stops for an empty list : indeed, I wasn't interested<br>
> in that part and I prefered dealing with the signals.<br>
><br>
> As the frame is the same as the breakout frame, it is also<br>
> possible to launch the game with<br>
><br>
> ./Tetris --dump-dot | dot -Tsvg -o tetris.svg<br>
><br>
> in order to get an svg showing a graph of the signals. Any<br>
> help is welcome to understand this graph !<br>
><br>
> Every comment is welcome (especially about the first 170<br>
> lines).<br>
> Enjoy!<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/mailman/listinfo/haskell-cafe</a><br>
</div></div></blockquote></div><br></div></div></div></div></div></div>