Where to start for making a Solitaire game?

Monkey Archive Forums/Digital Discussion/Where to start for making a Solitaire game?

Raul(Posted 2014) [#1]
I want to try making a Solitaire-card game, similar to: http://www.bigfishgames.com/download-games/24789/zombie-solitaire/index.html

but I have no idea where to start. I assume you cannot simply randomize the cards. Are there some specific algorithms to make sure that the player has some chances to finish a game?

What should I start looking/learn?


Soap(Posted 2014) [#2]
Real, physical solitaire is based on a randomly shuffled deck. You can do checks to make sure there are not too many duplicate cards next to each other in stacks/decks and reshuffle them in if you find them to make it a little less painful to rely on pure randomness. Begin somewhere and test to see what feels good to play.


Gerry Quinn(Posted 2014) [#3]
I think if you want to make sure there is a solution, the only effective way is to make a solver (it can work with all cards face up) and generate random positions until a valid one is found.