4Blocks in Haskell!

6 08 2009

This week, instead of a post on DSELs, I’m going to show what I’ve been working on. It’s my first, real foray into Haskell: a game implementation. Some day soon I hope to make my implementation available on the Haskell libraries repository (Hackage).

Thanks goes to the folk at the Haskell irc channel #haskell who helped me when I got stuck. Special mention goes to Saizan for his everlasting patience.

Edit:
Some more details:
The game is being played by me in single player mode. The other parts shown are WIP. The graphics library used if anyone is interested is Gtk2hs.

Edit 2:
In light of a comment by one of the visitors of the blog (which was also a nagging worry of mine), and some searching on my side I decided to alter the game’s name and certain minor features to prevent copyright problems. I have uploaded a new video which reflects these changes.

Edit 3:

4Blocks code released! Check here and here for more info! :)

About these ads

Actions

Information

17 responses

7 08 2009
BIGGIE SMALLS

That is sick!

7 08 2009
ok-but

is it implemented using a tetris DSL?

7 08 2009
drewcalleja

Well no, that is me playing. I haven’t mentioned DSLs so far. But lets say its something I am working on. :P

7 08 2009
ray

keep it up!!

7 08 2009
gh

Great! Just one remark: there is no such thing as a mirc channel, it’s an irc channel, and mirc is just one of the software that enables you tu use irc.

7 08 2009
drewcalleja

Oops you’re right xD Its a bad habit I have from back when I used to use that software! Fixing the post :)

7 08 2009
Federico

Hi congratulations !! it looks neat!

Will you share the code ??

7 08 2009
drewcalleja

Thanks!

Sometime in the future I shall, but right now its something I am working on.

7 05 2010
8 08 2009
Mr. Vermeer

You should be careful about using the name “Tetris”. The Tetris Company is notorious for upholding its trademark on it.

9 08 2009
drewcalleja

Yes I was afraid of this. I shall remedy this.

10 08 2009
Mr. Vermeer

I’m glad you did. :) You wouldn’t be the first open source or freeware developer to receive nasty cease and desist letters. Anyhow, game looks like it’s coming along very nicely. I love statically typed languages, but the typing in Haskell always gives me headaches. Couldn’t imagine the complexity of the typing in a simple game like this. Kudos!

10 08 2009
drewcalleja

Honestly, Haskell’s typing was not a problem to me at all when creating this game. If anything it helped me write safer code, and with less debugging time :)

9 08 2009
Jim

Here was my take, would be interesting to compare implementation differences.

http://myawesomeblag.blogspot.com/2007/03/opengl-tetris-in-haskell.html

7 05 2010
drewcalleja
9 08 2009
dixie

it is very nice!

9 08 2009
drewcalleja

thanks :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Follow

Get every new post delivered to your Inbox.

%d bloggers like this: