Slashdot Mirror


1K JavaScript Madness

An anonymous reader writes "JS1k has a simple goal: to get programmers producing demos written in JavaScript that are 1k in size or less. That's just 1024 bytes to play with. There's even additional bonus points on offer if a demo's code can fit inside a single tweet. Now that the contest is finished and there is a top-ten, I'm wondering what they can do if given some extra bytes." I like the Tetris clone. The pulsing wires demo is neat too but kinda stuttery on my machine.

7 of 131 comments (clear)

  1. Re:Found a bug in tiny ches... by Anonymous Coward · · Score: 4, Informative

    "[...]it will validate moves, queen-only promotion, without castling and en passant." http://nanochess.110mb.com/

  2. Re:I'm sure Twitter is delighted by WrongSizeGlass · · Score: 4, Funny

    About javascript in their tweets...

    If they aren't just give it some time ... I'm sure it will worm its way into their hearts ;-)

  3. Re:Found a bug in tiny ches... by Iamthecheese · · Score: 5, Funny

    Today, a day that will live in infamy, I was beaten by a 1000 byte program.

    --
    If video games influenced behavior the Pac Man generation would be eating pills and running away from their problems.
  4. Re:And BOOM by WrongSizeGlass · · Score: 5, Funny

    I'm not impressed ... maybe I'll try again, but this time I'll turn off NoScript.

  5. Re:Genetic approach by TelavianX · · Score: 4, Insightful

    This is possible, but how many valid javascript programs are 1024 characters or less? A very large amount!

    Checking each if it followed the predefined rules would be time consuming. For instance, in Pacman, you might have to have the computer play a full game to check if the rules are met.

    Almost all the programs would be utter nonsense.