Ad

Wednesday, September 19, 2007

predict2win@penthegame.com

Speculations are rife for the result that is not far. The D-Day is here n the situation is nothing less that Do or Die for India (like it has ever been..ha). Group E will see its most eventful day which is also its second last one since its inception last Sunday. No less bored I have been now reading previews n reviews, its time to sit back, analyse the points table, predict each ones fate and stand up. Don't be surprised, because thats all the time u gonna get while New Zealand takes on South Africa as I m writing this, and India enters into business with England while I get my first reader :P

So it could have been anybody's match (NZ vs Eng) yesterday before Shane Bond came up with that decisive spell rooting 3 wickets spanning just 5 balls. With Kiwis almost qualified for a berth in Semi Finals (2 wins out of 2), Proteas are not gonna have any stone unturned to clear any doubts on their chance. Being at home is an advantage or not, that is left for them to decide.

// myteam = "IND"
// otherTeam1 = "NZ"
// otherTeam2 = "SAF"
// otherTeam3 = "ENG"
teams[] guessQualifiers() {
    if(whoWins("NZ", "SAF") is "NZ") {
        if(whoWins("IND", "ENG") is "IND") {
            if(whoWins("IND", "SAF") is "IND") {
                return ["NZ", "IND"];
            }
            else {
                return ["NZ", "SAF"];
            }
        }
        else {
            if(whoWins("IND", "SAF") is "IND") {
                //ambiguous, will be decided on NRR.
            }
            else {
                return ["NZ", "SAF"];
            }
        }
    }
    else {
        if(whoWins("IND", "ENG") is "IND") {
            if(whoWins("IND", "SAF") is "IND") {
                //ambiguous, will be decided on NRR.
            }
            else {
                return ["NZ", "SAF"];
            }
        }
        else {
            return ["NZ", "SAF"];
        }
    }
}

team whoWins(team1, team2) {
    // returns the winning team
}

So as we see here, things are not looking good for India out here, with only one realistic and two outside chances to qualify for a place in semis. But given the history that this team has, the heart of this sensitive blogger still lies where it has always been without listening to his brain. So here we are, hands joined (may be biting our nails as well), praying, and let the better teams qualify (with India among them :P), and the AIDS campaign ambassadored by all participating nation be a success.

ps] In god we trust, rest we test. The Algorithm hasn't undergone any QA cycle yet, so no prizes for catching any bugs :P. Though logging them here would be no less appreciated ;)


5 comments:

Aish said...

Well before QAing it; I would like to say that like other developers you have fallen prey to the "It is my code, I will not comment on it syndrome"; which leads me to read the entire article sans the algorithm..now back to the algorithm

dk said...

u know y india is such a potent software ground?
1. Indians are cricket fanatics
2. Everytime India plays a multi-team tournament, we face situations where we have to put so much logic for an Indian successful throughfare that it makes us intelligent
3. Logically sound guys become good SW engg...lol

These are logically connected situations...
and so are these
1. I am indian
2. I am Cricket crazy
3. I am SW Engg

Khurana rox!!!

abhi said...

haha...
@aish
i still won't be commenting it..by the time i update it...half of the algo will be redundant as NZ is 131/5 from 16 overs.

nitesh said...

u rock khurana
SA will choke today just like they always do :)

desh said...

jeet gayi india
choke ho gayi s africa