JS1k cart logo - original by @nodejitsu - modded by @feiss

JS1k: The JavaScript code golfing competition

2011 - Oregon Trail

Home   Rules   Demos   Submit

Competition rules 2011

  1. Submissions may be up to 1k (1024 bytes)

    Bytes, not characters. Note that js has 16bit character strings so make sure your submission is in fact 1024 bytes.
  2. Submissions must consist of only js

    Do not send me html or css unless it is embedded as js. It will be rejected otherwise.
  3. Any and all externals are strictly forbidden

    No externals also means talking to an api after the app loaded, sending data to an app (twitter, facebook) and of course including images or other media remotely. It should also not be dependent on plugins or whatever.
  4. Must work on current browsers versions (ch9+, o11+, fx3.6+ and sa5+)

    To keep the steep hacks out the demo's must work in all of the mentioned browsers. Firefox 4 and IE9 are not finalized at the start of this competition so they are out (for as far as being required to work in them). I don't want to force anyone to have to reconsider their demo mid-contest.
  5. You get canvas object, its context and body object for "free"

    You get some boiler plate. The canvas element and its context wil be embedded in your global as the variable c and a. For those not using canvas, you get the body element in the global as variable b.
  6. Your demo must work in the "html5" shim provided

    The shim will embedded in a frameset. Note that it will have to work inside the intended frame set (although, if it works in the shim and not in the frameset, please let me know) and that you're not allowed to "break out" of the frameset. The frameset has since then been replaced by an iframe
  7. Your demo must be submitted before Sunday, April 24th at midnight

    The deadline is midnight on April 24th (so the midnight of 24 to 25 April ;). As I'll be in the States then (st. Louis, MO) it'll be whatever timezone that is :)
  8. No audio

    Yeah, I'm aware that audio is a big thing in the game but the audio api is simply not supported in all targeted browsers. Maybe next time. Your demo will be judged with audio muted. So an "original sound track" will look kind of silly ;) But feel free to submit anyways! I won't reject them.
  9. No webgl

    WebGL has actually little to do with js but the main issue is that of all targeted stable browser versions, only chrome supports webgl.
  10. The theme is only a suggestion

    The theme is just a suggestion. When judging, entries which follow the theme do not get extra points, just street cred :)