Page 1 of 1

My Solitaire

Posted: February 24th, 2013, 1:41 pm
by Nosferatu
Hello,
over the weekend I was a little bit bored and now even don't know why, decided to make a Solitaire clone. It is pretty much exactly the same Solitaire as in WinXp so don'n expect anything new. Just thought I will post it here, so if you were struggling to make something similar you can have a quick look at my code. I've done it in less than 3 days so it has quite a few things which could be improved and I believe that some of the code is rather inefficient, but whatever :P

Re: My Solitaire

Posted: February 24th, 2013, 1:57 pm
by astr0
well the controls aren't same as on actual solitaire but the program works. so great job :)

Re: My Solitaire

Posted: February 25th, 2013, 12:54 pm
by Nosferatu
Oh, the controls, forgot to mention they are a little bit weird ;)
What troubles me, however, is that I was able to win only 2 times out of 10, so I was wondering if there isn't some special algorithm for generating the deck as I used just random generator. Or maybe it just means that I suck at Solitaire :P

Re: My Solitaire

Posted: February 25th, 2013, 3:55 pm
by astr0
hehe i don't know about any algorithm. I think it is randomly... who knows...

Re: My Solitaire

Posted: February 25th, 2013, 5:41 pm
by Conflictus
Thought i'd try my luck and i've won 6 of 10 games so far. :D

Re: My Solitaire

Posted: February 25th, 2013, 5:46 pm
by Nosferatu
So it's official. I am a NOOB :D
Btw, thanks for testing ;)

Re: My Solitaire

Posted: February 25th, 2013, 9:26 pm
by Conflictus
I went ahead and played another set of 10 games. I only won 5 of them this time, however.

In one of the games, the only cards left to choose from were the queen of clubs and 9 of diamonds. My 7 of hearts & diamonds are among the face down cards underneath the 6 of spades & clubs.

Initially I had written this off as unwinnable, but there are a couple moves that I didn't see at first. Now i'm kinda wishing I didn't exit out of the game. :(

I'm a little curious how many of the games truly can't be won though..

Re: My Solitaire

Posted: March 2nd, 2013, 2:37 pm
by LuX
Nice work.