Sunday, March 22, 2015

And now, for something completely different, and inconsequential


Taking a break from composite structure management inside my language, I wrote a little Python script to generate k-ominoes. I was first introduced to the 5-tile version, "pentominoes". If I recall correctly, somebody manufactured a playkit/puzzle of a set of all(?) of the pentominoes, and one of the challenges was to fit them all into the box.

Playing around with tetrominoes will be familiar to people who have played Tetris before.

One vaguely tongue-in-cheek idea I have for a game is "k-tris", where you get to select the value of k, that is, the number of tiles making up the pieces that you'll be dropping. For k=4, the game is Tetris, and might earn me a cease and desist, so perhaps I only allow odd values for k. k=3 becomes a pretty trivial game, and even moreso for lower values. Not that it's my job to police that. Feel free to play one-block-Tetris if you want. My guess is that "Pentris" (k=5) or "Septris" (k=7) will be really hard to play. But there's no reason it'd be any harder to program than the more familiar versions.

No comments:

Post a Comment