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.

Lightbot: A simple programming game

127 pointsby abraham_sover 10 years ago

19 comments

Orangeairover 10 years ago
I find this interesting for how it demonstrates recursion as a means of looping. Most simple code tutorials like this just follow the procedural style, and make you throw a set of instructions inside of a loop block.
wolf550eover 10 years ago
A long time ago I wrote a simplistic &quot;genetic algorithm&quot; and JIT for solving these puzzles as an exercise. The code is not good, but it did work.<p><a href="https://github.com/zeevt/lightbot_solver" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;zeevt&#x2F;lightbot_solver</a>
kolevover 10 years ago
It&#x27;s not that simple. My 6-year-old son is having hard time - even with the Junior version on Android. Sometimes I do have issue with the regular version as well - it&#x27;s much easier to write code than use the constructs.
评论 #8912884 未加载
mjmahone17over 10 years ago
This game has a similar code mechanic to CargoBot: <a href="https://itunes.apple.com/us/app/cargo-bot/id519690804?mt=8" rel="nofollow">https:&#x2F;&#x2F;itunes.apple.com&#x2F;us&#x2F;app&#x2F;cargo-bot&#x2F;id519690804?mt=8</a><p>CargoBot has given me hours of having to really think about how to structure my &quot;code&quot; to get the recursive calls just right. I haven&#x27;t gotten deep into Lightbot yet, but it should be a fun puzzle if later levels have similar types of recursive challenges.
NaNaNover 10 years ago
There is an old one from the same team: <a href="http://armorgames.com/play/2205/light-bot" rel="nofollow">http:&#x2F;&#x2F;armorgames.com&#x2F;play&#x2F;2205&#x2F;light-bot</a>
anomieover 10 years ago
<a href="http://pleasingfungus.com/Manufactoria/" rel="nofollow">http:&#x2F;&#x2F;pleasingfungus.com&#x2F;Manufactoria&#x2F;</a> is another great game along the same lines
评论 #8911534 未加载
oflordalover 10 years ago
Try <a href="http://www.robozzle.com" rel="nofollow">http:&#x2F;&#x2F;www.robozzle.com</a> for a game in similar vein with a bit more depth.
评论 #8911764 未加载
评论 #8912369 未加载
slowmovintargetover 10 years ago
Haven&#x27;t seen it mentioned in the comments yet, but here&#x27;s another that&#x27;s a bit more hardcore: <a href="http://robocode.sourceforge.net/" rel="nofollow">http:&#x2F;&#x2F;robocode.sourceforge.net&#x2F;</a><p>You code the AI for your tank then let it loose in an arena with other tanks. You have to handle path-finding, scanning, range-finding, target identification, hit&#x2F;miss analysis.<p>Some of the winning bots are amazingly competent with their scan-and-move algorithms. You code in Java or some flavor of .Net.
gaspingover 10 years ago
This was really good but there were a few levels that left a bit to be desired. Some of them were basically &quot;find a way to mash this code into these functions without exceeding the instruction cap&quot; while others encouraged quite elegant programming. The last one of the final stage was probably the best example, I thought it was quite elegant.
Tideflatover 10 years ago
As a hint: When you run out of space in a function, then just tack the still needed blocks to the end of every call of that function. It is a bad real-life programming pattern but works in this language.<p>(This language seems non-turning complete without conditionals.)
abraham_sover 10 years ago
I have been looking for a game to suggest to my 8 year old nephew. This looks simple enough for him to start on. But I am guessing he might need some help when recursion comes into picture. Thanks to others who have posted other suggestions.
artgonover 10 years ago
This is a really clever way to help people get an idea of what programming is all about.<p>Great work!
akkartikover 10 years ago
Right after the first level the question in my mind was, &quot;hmm, I wonder what the tile for conditionals looks like.&quot; That question was never answered. Anybody have any ideas on how to answer it?
评论 #8914136 未加载
glesicaover 10 years ago
Was anyone able to actually play the game? It took me to an introduction, the last slide of which was &quot;I&#x27;m finished with my hour of code&quot; and I couldn&#x27;t go any further.
评论 #8912545 未加载
评论 #8912132 未加载
tensorproductover 10 years ago
I played this game some years ago before I learned anything about programming. Coming back to it with some understanding of recursion makes it a lot easier (though still tough in places).
isxekover 10 years ago
Also a great game with the same theme from 2011: Pragmatica<p><a href="http://www.wearehive.com/games/pragmatica/" rel="nofollow">http:&#x2F;&#x2F;www.wearehive.com&#x2F;games&#x2F;pragmatica&#x2F;</a>
madlagover 10 years ago
My daughter has been playing it since she was 7, it&#x27;s really cool to teach the basics of programming, and more generally to improve accuracy of spatial and time reasoning.
userbinatorover 10 years ago
Definitely much easier than this one: <a href="http://en.wikipedia.org/wiki/Robot_Odyssey" rel="nofollow">http:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Robot_Odyssey</a>
评论 #8920588 未加载
otikikover 10 years ago
Auto playing music on load -&gt; instant tab close.