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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

The HTML Tic-Tac-Toe Game

13 点作者 rayvega超过 15 年前

7 条评论

RiderOfGiraffes超过 15 年前
His underlying engine that generated the pages isn't very good because it's easy to beat. Unless that was deliberate, but he doesn't say so.
评论 #1120220 未加载
Tichy超过 15 年前
I would have hoped that it uses CSS logic. Should be doable? I am not a CSS wizard (still look up things on the fly), but I think there are rules for "if class x is below class y in the hierarchy then..." and for selected and unselected links. Perhaps that is sufficient to create a much more compressed CSS only Tic Tac Toe?
评论 #1120283 未加载
rohitpardasani超过 15 年前
Great thing. It reminded me of the time when I used heuristics for developing tic-tac-toe in C. And realized that to make computer play a simple logical game it takes hundreds of lines of code. So I really appreciate the amount of thinking gone in developing such AI entirely from discrete states of HTML pages.
artagnon超过 15 年前
293 separate HTML pages! This is a relic.
评论 #1120280 未加载
jazzychad超过 15 年前
"A strange game. The only winning move is not to play." - Joshua<p>(Incidentally, that movie sparked my interest in both artificial intelligence and telephony programming.)
allenp超过 15 年前
"On a Pentium 133, it requires about 20 seconds to play every game and generate every HTML page!"
ddrouin超过 15 年前
I want the same with chess. Please.
评论 #1120925 未加载