My Solitaire

The Partridge Family were neither partridges nor a family. Discuss.
Post Reply
User avatar
Nosferatu
Posts: 36
Joined: July 25th, 2012, 7:08 am
Location: Slovakia

My Solitaire

Post by Nosferatu » February 24th, 2013, 1:41 pm

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
Attachments
Solitare.zip
(4.15 MiB) Downloaded 425 times

astr0
Posts: 87
Joined: July 21st, 2012, 8:43 pm
Location: Serbia

Re: My Solitaire

Post by astr0 » February 24th, 2013, 1:57 pm

well the controls aren't same as on actual solitaire but the program works. so great job :)
Programming is my art.

User avatar
Nosferatu
Posts: 36
Joined: July 25th, 2012, 7:08 am
Location: Slovakia

Re: My Solitaire

Post by Nosferatu » February 25th, 2013, 12:54 pm

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

astr0
Posts: 87
Joined: July 21st, 2012, 8:43 pm
Location: Serbia

Re: My Solitaire

Post by astr0 » February 25th, 2013, 3:55 pm

hehe i don't know about any algorithm. I think it is randomly... who knows...
Programming is my art.

Conflictus
Posts: 53
Joined: January 7th, 2013, 8:09 am

Re: My Solitaire

Post by Conflictus » February 25th, 2013, 5:41 pm

Thought i'd try my luck and i've won 6 of 10 games so far. :D

User avatar
Nosferatu
Posts: 36
Joined: July 25th, 2012, 7:08 am
Location: Slovakia

Re: My Solitaire

Post by Nosferatu » February 25th, 2013, 5:46 pm

So it's official. I am a NOOB :D
Btw, thanks for testing ;)

Conflictus
Posts: 53
Joined: January 7th, 2013, 8:09 am

Re: My Solitaire

Post by Conflictus » February 25th, 2013, 9:26 pm

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..
Attachments
unwinnable.png
(81.83 KiB) Downloaded 490 times

User avatar
LuX
Posts: 1492
Joined: April 22nd, 2012, 12:33 pm
Location: Finland

Re: My Solitaire

Post by LuX » March 2nd, 2013, 2:37 pm

Nice work.
ʕ •ᴥ•ʔ

Post Reply