Python Forum
I've Wanted to do This Since College
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I've Wanted to do This Since College
#1
So I'm working on some game programming. Nothing fancy, mind you. One of the games I have working is Klondike (Solitaire). Now, if you've ever played Klondike in a dorm setting or something similar, you know that guy. The one who watches over your shoulder and keeps saying things like "Oh! You could play the seven!" But if you've ever played Klondike seriously, you know that it is not always to your advantage to play cards as soon as you can. Especially with the stock, what cards you play now will affect what cards you will get later, so you have to manage your plays.

One time in college I was playing Klondike, and one of my frat brothers (Grimace) was that guy. At one point, getting tired of him pointing out cards that I could play even though it was a bad idea, I turned to him and said, "You know, I could not only write a program to play Solitaire, but I could write a program to play Solitaire for you."

Well, tonight I finally did that. I actually wrote the code for the bot player a while back, but it had bugs, and I wanted to move on. But this week I was doing a lot of code review, and was itching for some real coding, so I went back and debugged what I had written before. It didn't take long to get it working, it was mostly errors interfacing with the actual game.

I have implemented other games as well, including FreeCell. While doing so, I implemented the numbered deals common to FreeCell games. And if they're implemented for FreeCell, why not implement them for the other solitaire games? So now I can use the bot to figure out what deals you can easily win in Klondike, since even an idiot could win them. I want to compare them against easily winnable FreeCell games and see if I can find a match.

I know it's kind of silly to be proud of writing a program that plays Klondike like an idiot, but I am feeling very pleased with myself. I even went out and bought myself some candy.

Cool
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply
#2
If you are unable to enjoy whatever you are doing there is no point in doing it at all. Smile
It's not silly
"As they say in Mexico 'dosvidaniya'. That makes two vidaniyas."
https://freedns.afraid.org
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Database for a College or School nexusfactor 2 3,463 Oct-14-2017, 03:03 AM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020