Live data from Hacker News

Tetris in Haskell

lambdacolyte.wordpress.com

1–10 of 23 posts

Re: Tetris in Haskell

#2
this is a video of somebody playing tetris, it could have been programmed in java, haskell or brainfuck for that matter.

Without the code to go with it haskell hasn't got much to do with it. Would be nice to see the source!

Re: Tetris in Haskell

#4
post #2

this is a video of somebody playing tetris, it could have been programmed in java, haskell or brainfuck for that matter. Without the code to go with it haskell hasn't got much to do with it. Would be nice to see the source!

Yeah, the source code would be very good to see.

Re: Tetris in Haskell

#5
post #2

this is a video of somebody playing tetris, it could have been programmed in java, haskell or brainfuck for that matter. Without the code to go with it haskell hasn't got much to do with it. Would be nice to see the source!

Yeah, the source code would be very good to see.

If it is programmed in brainfuck though I'm going to eat my hat or something. Do penance in a major way ;)

Re: Tetris in Haskell

#6
post #3

Presumably this is newsworthy because building Tetris in Haskell is harder than in an imperative/OO language? Why is that a good thing?

Presumably this is newsworthy because everyone assumes building Tetris in Haskell is harder than in an imperative/OO language. This is a good thing because it proves that it's not.

Re: Tetris in Haskell

#8
post #3

Presumably this is newsworthy because building Tetris in Haskell is harder than in an imperative/OO language? Why is that a good thing?

Presumably this is newsworthy because everyone assumes building Tetris in Haskell is harder than in an imperative/OO language. This is a good thing because it proves that it's not.

He says its taken him a week to do it and has had to ask lots of people for help. So I'd say its much harder than in a language like C#. I could (and so could most other people here) make tetris in 1-2 days without help.

Re: Tetris in Haskell

#9
post #7

There is an implementation of tetris in haskell with the source code: http://web.comlab.ox.ac.uk/people/Ian.Lynagh/Hetris/ I discovered it when a regular contributor contributed an article on the game to my FOSS gaming encyclopedia.

Could you provide the link to the encyclopedia of yours?

Re: Tetris in Haskell

#10

Earlier quoted context omitted.

Presumably this is newsworthy because everyone assumes building Tetris in Haskell is harder than in an imperative/OO language. This is a good thing because it proves that it's not.

He says its taken him a week to do it and has had to ask lots of people for help. So I'd say its much harder than in a language like C#. I could (and so could most other people here) make tetris in 1-2 days without help.

But the thing is, functional game development techniques are nowhere near as developed or established as those of OO game development. The solutions to the problems at hand aren't as immediately obvious.

This comes to mind: http://prog21.dadgum.com/23.html

Post reply on HN