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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Tic Tac Toe Implemented in Elm

27 点作者 vishaltelangre超过 7 年前

5 条评论

speps超过 7 年前
I did a few games with Elm but used the SVG route myself. It&#x27;s usually a lot easier to work with and you don&#x27;t really have to deal with CSS and the DOM update is still lazy.<p>Finally, I think there are a few red flags in your code. For example you have a hardcoded list of cell locations but you use a method to compute the number of rows which has a sqrt in it... might as well hardcode the number of rows :)
评论 #15481206 未加载
评论 #15477079 未加载
edejong超过 7 年前
I&#x27;m slightly surprised that a simple tic-tac-toe game in high-level FP takes 400 lines of code.
评论 #15476563 未加载
评论 #15477746 未加载
评论 #15476486 未加载
评论 #15477082 未加载
vishaltelangre超过 7 年前
Source code is at <a href="https:&#x2F;&#x2F;github.com&#x2F;vishaltelangre&#x2F;elm-tic-tac-toe" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;vishaltelangre&#x2F;elm-tic-tac-toe</a>.
guyromm超过 7 年前
shameless self plug: a chutes and ladders game in elm on the client, python (flask) on the server. <a href="https:&#x2F;&#x2F;github.com&#x2F;guyromm&#x2F;snakes-and-ladders" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;guyromm&#x2F;snakes-and-ladders</a>
maxraz超过 7 年前
That was fun