Fun with PowerShell: I made a game

So we got to playing around with PowerShell last week – one son is making a game hack, and the other is making a game, both with PowerShell.  So I decided to get in on the fun.

I wasn’t feeling particularly creative, so I stole the idea of (ahem) that game where you plug in names and nouns and stuff to silly up a story. Pretty sure that game’s name is copyrighted. Anyway.

I made a PowerShell game, and you can download it and poke at it, and play the game.

Download JenStoryGame and play! (Remember to rename the file from JenStoryGame.txt to JenStoryGame.ps1.)

 

P.S. If you’d like to learn PowerShell, check out the Beginning PowerShell session on our Events page, and the PowerShell tutorials on MidnightDBA.com.

1 thought on “Fun with PowerShell: I made a game

  1. Jeffery Hicks (@JeffHicks)

    Love the game. I’d suggest using the environmental variable $env:temp instead of a hard coded value like C:\temp. Or add an Else statement and prompt for a path. I’d love to see you add a title as well constructed from the input.

    $title = “$Name and the Awful $catastrophe”

Comments are closed.