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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: A competition game to write bots for the most efficient algo

11 点作者 desertkun3 个月前
I had an idea on a competition in a highly constrained environment: 32x32 matrix, with bots running code you write! The live site is <a href="https:&#x2F;&#x2F;kingofthegrid.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kingofthegrid.com&#x2F;</a>.<p>Each bot emulates Z80 CPU and they all get equal execution time, so the most efficient algorithm wins.<p>Bots can move, eat, clone themselves, and most importantly, survive the competition.<p>Each submission, leaderboard is re-calculated, such that each participant has a match against each other, and the bot that makes the most wins gets to the top.<p>It includes includes an online in-browser IDE: <a href="https:&#x2F;&#x2F;kingofthegrid.com&#x2F;ide&#x2F;" rel="nofollow">https:&#x2F;&#x2F;kingofthegrid.com&#x2F;ide&#x2F;</a> that way you don&#x27;t even have to download anything to spitball ideas. After compiling, you can test your code in browser as well.<p>I am also hoping for submitters to come up with ingenious ideas that would force others to re-think the strategy, etc.

4 条评论

saurik3 个月前
In 2006, Symantec ran a programming competition of sorts for University students, where you had to write code for a tiny bot that was trying to collect as many resources as possible from the game map. What made it particularly interesting was that one of the features of the instruction set was a peek&#x2F;poke operation that would let you modify the memory of other bots, letting you try to break them and take control of them to help your cause.<p><a href="https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20060224022835&#x2F;http:&#x2F;&#x2F;www.symantec.com&#x2F;specprog&#x2F;university&#x2F;" rel="nofollow">https:&#x2F;&#x2F;web.archive.org&#x2F;web&#x2F;20060224022835&#x2F;http:&#x2F;&#x2F;www.symant...</a>
anta403 个月前
Ah looks interesting. Perhaps this is inspired by Core War?<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Core_War" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Core_War</a>
评论 #43169918 未加载
keyle3 个月前
Isn&#x27;t it just a case of cloning yourself as many time as possible until you encounter an enemy, and then you have superior number even with a lesser good algorithm?
评论 #43169927 未加载
jasonjmcghee3 个月前
Reminds me (in spirit) of screeps <a href="https:&#x2F;&#x2F;screeps.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;screeps.com&#x2F;</a> - any inspiration?
评论 #43178147 未加载