Tuesday, January 5, 2010

Extreme Solitaire

After finishing Koans I was looking for another project I could work on to help learn ruby. Unfortunately I had a lot of trouble coming up with an idea for a project to work on. All the tools I've needed recently have already existed, and since I actively needed them it made more sense to use what I found than spend the time to create one.

Then one night while playing solitaire on my phone (why do I keep playing that?!) I started wondering about how many possible paths to winning different hands could have. It's a completely pointless exercise, but for some reason I kept thinking about it.

So, I started a ruby project to implement a solver for solitaire (specifically, klondike solitaire). So far I have a few classes in place and some of the rules defined. I haven't poked at it in a week or so and might not for a bit, as I just got the The Ruby Way book and will probably be going through that for a while. But I plan on eventually finishing that project, and will probably end up with a few posts here on different things I've picked up (or end up wondering about) during the project.

Given that this will end up being a 0-player game I decided to call it "Extreme Solitaire" (for being extremely solitary).

In case anyone is interested, the code is here: http://github.com/aherrman/extreme-solitaire



I play too much solitaire when I'm bored. So I'm writing a solitaire game to help learn ruby.

1 comment:

  1. Its a wonderful idea being discussed in this blog. Few points are also new ones and interesting to read.

    ReplyDelete