TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Implementing 2048 in 90 lines of Haskell

39 pointsby gualmost 11 years ago

4 comments

taylorfausakalmost 11 years ago
Neat! I also cloned 2048 in Haskell [1]. I don&#x27;t know how many lines of code it is, but the core game logic is remarkably simple.<p>[1]: <a href="http://taylor.fausak.me/2014/04/28/cloning-2048-in-haskell/" rel="nofollow">http:&#x2F;&#x2F;taylor.fausak.me&#x2F;2014&#x2F;04&#x2F;28&#x2F;cloning-2048-in-haskell&#x2F;</a>
评论 #7897018 未加载
leohalmost 11 years ago
Question: I&#x27;ve seen at least several succinct versions of programs written in Haskell. Would people say this is a benefit of Haskell? Just skill on behalf of the coder?
评论 #7896393 未加载
评论 #7896545 未加载
taericalmost 11 years ago
This is neat and all, but the smooth animations of the original are probably not something you can easily pull off in few lines of code. And that is a very large fraction of the original, if I recall.
评论 #7896879 未加载
cwhyalmost 11 years ago
I haven&#x27;t used haskell before and did not fully understand the code, but since python support those map filter stuff, can we write haskell-like python as well?