“Objects in System.Reflection are closer than they appear.”
by Greg McCoy

Posts Tagged ‘Gaming’

Snippet: Die Roll

This snippet replaces instances of #d# in a text block with random numbers generated similarly to table-top gaming dice rolls. The random numbers are generated the same way that a die would be rolled in this situation (e.g. “3d6″ equates to “roll random 1 to 6 three times; add all three rolls”).

Click here to download the snippet: Die Roll

Sample Input:
I have a +1d3 Ring of Codefu, but I may be inclined to part with it for say… 3d20 gold? Hmmm…

Sample Output:
I have a +3 Ring of Codefu, but I may be inclined to part with it for say… 13 gold? Hmmm…

We’re off to see the Blizzard…

I guess in starting off my new “official” blog, this bit of news is just as good as any.

In less than a week, I’m flying out to California. I’ve never been to the west coast, but I hear it’s nice. The kicker is that I’ve never really wanted to go. Now, however, I can’t avoid going. Wouldn’t want to if I could, really. After all, it’s all payed for. It’s a mini-getaway. Most importantly, however, it’s for an interview with Blizzard Entertainment.

I’d say that really sums it up. For over a decade now, I’ve admired the work to come from their hands. Of course, I’ve always thought how great it would be to code or design for them. I just never thought seriously about having that opportunity. Now granted, I’m not going in for a game development position, but a tools developer instead. So I’m sure it will be a lot like the other work that I’ve done, but c’mon… it’s for Blizzard! Who knows, perhaps I can find a way to slip in my designs somewhere and get a prototype going. Oh well… pipe-dreams, you know?

I will obviously be posting about this in the days to come, but for now… I’m done.

Get a free book about code review best practices.