It’s been a while since I made a game. In fact, if I’m not mistaken, the previous effort was about a year ago, with The Clock Village. This time I thought to make something far simpler, so here’s Letteract, a card game with words.
The setup and rules are very simple, as you will see. The program didn’t take more than two or three days to put together, and another few to polish some details.
My iambic pentameter generator has been one of the most popular posts of the blog. To be honest, I’m not sure if that’s still the case or not. Since I completely revamped the blog (actually even earlier), I removed Google and Jetpack analytics. In any case, today we’ll be looking at, essentially, the reverse scenario: We’re making a very simple iambic pentameter checker.
Just in case you need a reminder, an iambic pentameter line consists of ten syllables, of which every other is stressed. For instance, “And you, my sinews, grow not instant old” (from Hamlet).
So, how can we create a JavaScript iambic pentameter checker that tells us if a line is an iambic pentameter or not?
You might recall that some time ago I completely revamped the main site of Home for Fiction. In the same post I mentioned how one day, if I’d only find the motivation and energy, I’d completely redo the blog, too. Turns out, anger is great motivation. You’re reading a brand new Home for Fiction blog.
Where the anger (and motivation) came from? Before I tell you, know this: The whole process took about a week. It would’ve likely taken even less if it hadn’t happened during the holidays. That’s right; it took me about a week to go from “fuck this shit!” to coding my blog from scratch. Here’s how – and why anger, with certain constraints, can be useful.