js1k 2012 : Love

js1k is a competition that runs once or twice a year. The point is to write a piece of JavaScript that is shorter than 1024 characters (bytes, actually, so mind your encoding) and still manages to do something interesting and somehow related to the subject of the competition.

The current iteration of the competition has the subject «Love» which, as you might imagine, led to many heart-rendering, pink-tinted applications being submitted.

My own submission is «Why am I single ?» :

It performs a simulation of a 50%-male, 50%-female population (entirely heterosexual — I couldn’t fit anything else in those 1k bytes) of things that bounce around a room and enter variable-duration relationships whenever opposite gender couples collide. A pie chart in the top left corner displays the current proportions of single males and females.

0 Responses to “js1k 2012 : Love”


  1. No Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>



1208 feed subscribers
(readers who polled a feed this week)