TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Implementing 2048 in 90 lines of Haskell

39 点作者 gu将近 11 年前

4 条评论

taylorfausak将近 11 年前
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 未加载
leoh将近 11 年前
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 未加载
taeric将近 11 年前
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 未加载
cwhy将近 11 年前
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?