
Solution to Event 10 in the 2008 Winter Scripting Games Sudden Death Challenge.
We want you to know that the Scripting Guys took pity on you for this final event. Originally we were going to simply present you with the following conglomeration of letters and tell you, OK, find the VBScript function, the Windows PowerShell cmdlet, and the Perl function:
.CSRIIEHRRTOENSWWPOCTIHPT-T
However, that seemed a little too tough, especially at the end of a long and grueling Winter Scripting Games. Therefore, we added the following hint at the end of the instructions:
About the best we can do is tell you that these two functions, and the PowerShell cmdlet, all perform the same general task. And what is that task? Sorry, but we can’t tell you that, either. That just wouldn’t be … write. |
Hopefully you picked up on that last word: write. If you did, then you know that all these items have something to do with writing information to the screen. And if you know that then you probably were able to come up with all three commands:
| • | WSCRIPT.ECHO |
| • | WRITE-HOST |
| • |
Just to show you how this was derived, let’s start with our original value:
.CSRIIEHRRTOENSWWPOCTIHPT-T
If we remove the characters that make up WSCRIPT.ECHO, we’re left with this:
I HRR ENS W O TI PT-T
And if we remove the characters that make up WRITE-HOST we’re left with these letters:
R N I PT
Needless to say, even if you don’t know anything about Perl you could probably unscramble those letters to come up with the word PRINT. If you did, then you successfully completed Event 10.