My Solitaire
My Solitaire
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
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
- Attachments
-
- Solitare.zip
- (4.15 MiB) Downloaded 428 times
Re: My Solitaire
well the controls aren't same as on actual solitaire but the program works. so great job
Programming is my art.
Re: My Solitaire
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
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
Re: My Solitaire
hehe i don't know about any algorithm. I think it is randomly... who knows...
Programming is my art.
-
- Posts: 53
- Joined: January 7th, 2013, 8:09 am
Re: My Solitaire
Thought i'd try my luck and i've won 6 of 10 games so far.
Re: My Solitaire
So it's official. I am a NOOB
Btw, thanks for testing
Btw, thanks for testing
-
- Posts: 53
- Joined: January 7th, 2013, 8:09 am
Re: My Solitaire
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..
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