Holy Script!
Not the Holy Scripture… but rather holy ActionScripting! Good Lord, I had no idea what I was getting myself into with this math. I’ve been staring at the computer for hours trying to figure out the code that’ll make this sucker work. Math math math math math. But I finally got it.
I’m no longer in my office, but I think I can remember a small piece of it… check this out:
function lame(g) {
y = 0
score1 = 0
for (w=1, w<8; w++) {
s = "b";
y = y + 1;
if (eval("win"+w+s) == eval("p"+g+"_"+s+y) {
score 1 = score1 + 11;
} else {
for (x=1; x<12; x++) {
if (eval("win"+w+s) == eval("p"+g+"_"+s+x) {
if (x < w) {
a = w;
b = x;
} else {
b = w;
a = x
}
score1 - score1 + (10 - (a - b));
}
}
So You Think You Can Code? Mmm… it’s mostly delusion. *sigh*
Anyway, I’m not sure if I’m gonna have this baby up by the results show tonight, but if I do, I have to warn you that it’s not gonna look very pretty. Just the basics: each of our picks and our current score. Once I’ve nailed down the backbone, I’ll spend my free time putting in the bells and whistles.
Oh, and something occurred to me while I was working on this… what happens if there’s a tie? What happens if there’s multiple ties??! @seangunn has assured me it’s very unlikely, but I’m gonna be safe anyway (we’re in a recession after all).
So what I’ve decided is to use the tweet bonuses for such a situation. In the event of a tie, it’ll be broken by comparing the number of bonuses accumulated by the tying players. So it makes the bonuses a little more important than for just upping your score.
And to be clear, they’re available for us to nab every episode. Even if you’re happy with the pick you have for that week, you can still tweet the same two contestants you think are going home… if you’re right, you get the full 11 points as well as the half point bonus.
So, yeah……….
…….. does my voice sound strange to you? It sounds kind of staticky… digital. Oh right, you can’t actually hear my voice. Well, it does… hmm.
(Whoa, I just noticed that my Zemantha plugin has suggested some tags for this posts… I’m assuming based on the biblical nature of the first few sentences… Good Lord, Religious text, Army National Guard, American Military University, Sports, and Sarah Palin… which to pick, which to pick).

kelseroo on 18 Jun 2009 at 6:20 am #
Yikes. Brain exploding. Maybe the winner should buy YOU lunch;-)
Jules on 18 Jun 2009 at 6:42 am #
wow, I feel for you- programming makes my brain hurt.
I missed yesterday’s show, I work Wednesday nights, & figured I’d be able to watch it online, but am having trouble finding vids… I *think* I’ve found something promising to download, though, so I might have a guess to tweet you before tonight’s show. is the deadline just anytime before the show starts? (that’s at 9pm, tonight… right?)
… I feel like this is a lot more complicated in my head than it needs to be. hahaha.
ok, guess I’d better get ready for work!
xoxo
@jennhoney on 18 Jun 2009 at 12:14 pm #
Ah, I feel like I’m cramming for a test in a language I don’t speak. I missed over 2/3 of last nights episode due to constant weather alert interruptions. If I ever get to see a full episode I might start to understand how eliminations work.
I was just reading a review of Kupono & Ashley’s ‘shadow dance’ in which the reviewer said- ‘where exactly is the light common from?’ lol.
Good luck with that coding! Good luck to all!
A 28 way tie would be a bad thing? Now, that would be a fun lunch!
Caryl on 18 Jun 2009 at 5:28 pm #
I think I lost my first reply – because I forgot to give a name/email address :/
Q: How did Sarah Palin get suggested for a tag?
That’s odd.
(I said something else here, but don’t remember now, lol).
Seems like a lot of work! Guess we owe you a BIG thank you, as well as Sean.
So, THANK YOU! – to both of you!!
@jennhoney on 18 Jun 2009 at 6:09 pm #
Elimination shows are brutal. I don’t know if I have the emotional fortitude for this. What have you gotten me into John Cabrera? Also, I’m not great at math but, I’m thinking my picks add up to a big zero. Hope everyone else did better!
…shouldn’t Kupono totally have gone home?