Hacking Add-on-Con

I am organizing Add-on-Con for the second time. During last years event, one of the best parts was putting faces with names. This year during the planing stage I had an idea, to try a game, to accomplish the same effect. I logged on to the web,  typed rentacoder.com, popped open Adobe Illustrator and started to draw. The end result can now be seen at Add-on-Con.com.

The game is proving to be great fun and a good way to virally let people know about the conference. I believe it is also achieving the goal of helping people put faces with names.

add-on-con-game

I originally had the game announce each players score over twitter, but that seemed to be viewed as spam. Not sure I agree, but I asked the developer to change the code. Now it announces each time a player takes over 1 of the top 5 slots and enables each player to announce the score from their own twitter account via a retweet button.

One of the really fun side affects that emerged is the competitive nature of the players. A large subset of the group are software developers, so hacking the game quickly became a popular way to post more impressive scores. Leading one of the player’s who claimed the top spot to claim “yes, this was legit”.

Another developer was kind enough to send me his hack:

<start script>

function myScript() {
setTimeout(‘timer.clicks=18;var mycards = new Array();mycards[0]=card_1;mycards[1]=card_2;mycards[2]=card_3;mycards[3]=card_4;mycards[4]=card_5;
mycards[5]=card_6;mycards[6]=card_7;mycards[7]=card_8;mycards[8]=card_9;mycards[9]=card_10;mycards[10]=card_11;mycards[11]=card_12;mycards[12]=card_13;mycards[13]=card_14;mycards[14]=card_15;mycards[15]=card_16;mycards[16]=card_17;mycards[17]=card_18;mycards[18]=card_19;mycards[19]=card_20;mycards[20]=card_21;mycards[21]=card_22;mycards[22]=card_23;mycards[23]=card_24;for(i in mycards){var cardText = mycards[i].cardText;if (mycards[i].isFound != true){mycards[i].flipCard(\’card_\’+(++i));for(j in mycards){if (i != j && mycards[j].isFaceUp != true && mycards[j].cardText == cardText){mycards[j].flipCard(\’card_\’+(++j));}}}}’,15000);
}

var script = document.createElement(“script”);
script.type = “application/javascript”;
script.textContent = “(” + myScript + “)();”;
document.body.appendChild(script);

<end script>

Thanks kevin, have fun and see you at Add-on-Con on December 11.


Follow

Get every new post delivered to your Inbox.

Join 2,209 other followers