Scripting Games

2016-March Scripting Games Wrap-Up

Don Jones
1 min read
Share:

Carlo really put a brain-twister out for our March 2016 Puzzle. Also, as a note, we’re eagerly awaiting submissions of next month’s puzzle, so don’t delay in handing that in. Here’s how you can contribute to the community’s favorite scripting game.

Official Solution

It’s probably easiest just to share his solutions as actual script files, so here’s both the Beginner and Advanced versions that he provided, as a ZIP:
Solutions
Carlo also provided some notes on his thinking:
Just a precision concerning the regex: the idea I had was to ‘force’ competitors to think in terms of Unicode categories and block ranges (unknown concept to most I bet).
Without digging, some people could come up with an expression like this, which is NOT what we want:

[char]$_ -match '[^\x20-\x7E]' My idea is to force inclusion of latin chars (hence {IsLatin-1Supplement}) which are letters {L}, then progressively exclude all numbers {N}, all punctuation characters {P}, all symbols {S} and all separators {Z}.
A proper use of the \p (in lowercase) and \P (in uppercase) constructs to force inclusion and exclusion is essential here:

[char]$_ -match "(?=\p{IsLatin-1Supplement})(?=\p{L})(?=\P{N})(?=\P{P})(?=\P{S})(?=\P{Z})") Did you follow his thinking? How’s you do?

Related Articles

Apr 1, 2018

Iron Scripter prequels: Puzzle 10 – A commentary

This is the commentary on the last Iron Scripter prequel puzzle: Iron Scripter Prequel Puzzle 10 - A commentary Next weekend will mark the start of summit and you can work on the Iron Scripter preludes - 4 daily puzzles as a lead in to the main event on Thursday 12 April 2018. If you haven’t chosen your faction yet you need to hurry

Mar 28, 2018

Iron Scripter Prequels: Puzzle 9 – A commentary

Here’s my commentary for puzzle 9: Iron Scripter Prequel Puzzle 9 - A commentary In this puzzle you were cleaning up the TEMP folder and the recycle bin plus working with scheduled tasks and/or scheduled jobs. One more commentary to come - probably early next week rather than Sunday and then we’re into the Summit and the main event.

Mar 18, 2018

Iron Scripter Preludes and Main Event: Rules and Info

Information is now available at IronScripter.us for the at-Summit events, and participants are advised to refresh themselves on the Rules. Participants attending Summit should begin choosing their faction and getting to know their teammates in the faction-specific channels of the DevOps-Summit Slack team (open only to attendees and alumni). Participants hoping to participate remotely may wish to start choosing a faction and finding a way to get in touch with them.