This continues my series of solution posts for the 2008 Scripting Games with my solution for the Advanced Event 4 which was about drawing a “graphical” calendar in the console. Basically, this is a simple task, and the only complication was the requirement to allow passing in the month.
There are solutions from the Scripting Guys and Ed Wilson already available, and both of them are pretty good solutions, so I would have left this post in the draft bin if it wasn’t for the fact that I already showed off screenshots of my final script (which is a bit over the top). Because I wrote such a complicated script in the end, I wanted to show you how it started before I show you how it ended up:
See that? Not really very complicated, right? It’s just about ten lines of code, and three of them are unnecessary variable assignments which just help make the script more readable (actually, there’s really only 2 necessary lines1). There’s a couple of tricks here though: Read the rest of this entry »
I’ve labeled this part 1 because I’m planning on writing more about a couple of my solutions to the Microsoft Scripting Games 2008, a few of my solutions are good examples of the power of PowerShell or of scripting languages in .Net, or just neat features.
Just for fun, I thought I’d post a screenshot of my solution for Event4 because I saw that /\/\o\/\/ was... 