About JS Robots

What is JS Robots?

It's a JavaScript reimagining of Tom Poindexter's seminal CROBOTS game. You program a script to control a robot and then put your robot up to fight against other CPU or human controlled robots each with various scripts!

Is this going to work in my browser?

Famous last words perhaps but it's worked in every browser I've tested it with. Namely the latest versions of:

Browsers vary wildy in their JavaScript performance and especially with HTML5 canvas. HTML5 audio performance varies most of all though, with some browsers not playing the sounds at all! (Though this might be because they are in WAV format...)

Release history

VersionDateNotes
0.91August 2017Removed PasteBucket and Twitter calls. Removed Zend Framework. Removed "Contact us" and "Legal" from About page. Published on GitHub as JS-Robots-2.
0.9March 2012Site redesign using 960 grid system. HTML5 canvas and audio. Removed jQuery. Improved game control buttons. Improved game instructions.
0.9June 2012Added PasteBucket publishing (and tweeting) option for winning human player scripts.
0.9March 2012Site redesign using 960 grid system. HTML5 canvas and audio. Removed jQuery. Improved game control buttons. Improved game instructions.
0.4ghNovember 2011First version of JS Robots in GitHub. Essentially as v0.85 minus any Twitter functionality and packaged to work purely from local files in the browser.
0.85October 2011Twitter hall of fame working again. It had stopped working since Twitter moved to oAuth only (which was a very long time ago!).
0.8July 2011Mostly cosmetic / internal revamp.
  • Now using HTML5 for text markup (but not using HTML5 canvas for drawing onto the arena - though this is a great TODO!)
  • Zend Framework now going on (very arbitrarily) in the background as a bit of personal practice.
  • Now on jQuery 1.6.2, although I see that this is quite a bit fatter than 1.3.2! jQuery is used for things like arena element sizing and auto onloading.
0.754 August 2009Fixed start / stop button bug. Added Twitter hall of fame entry for winning players.
0.72 August 2009First public version. Contains quick getaway and jitterbug bugs.

TODO

Bugs

There's a pretty irritating bug which we call the quick getaway bug. Basically, if your robot's speed is zero due to colliding with another robot, then you need to drive() away as soon as possible in the code rather than waiting for the next iteration. See the presets for examples.

Possibly related to the above, there's also the jitterbug bug. A robot will occasionally jitter back and forth when in front of a wall or other robot.

Another irritating bug is that starting the game again after a stop or game win isn't perfect unfortunately. Best to reload the URL [fixed!]

Behind the site

Other bits and bobs

The Programming Games Wiki is a very comprehensive review of programming games past and present. JS Robots is listed!

HTML5 Powered with CSS3 / Styling, Graphics, 3D & Effects, and Multimedia

Valid CSS level 3