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.

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

11 pointsby desertkun3 months ago
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 comments

saurik3 months ago
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 months ago
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 months ago
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 months ago
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 未加载