Card Games: Clock Patience (aka Clock Solitaire)

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Hutchboy
Posts: 118
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Card Games: Clock Patience (aka Clock Solitaire)

Post by Hutchboy » Wed Aug 13, 2025 3:01 pm

Hi,

Attached is a LiveCode version of Clock Solitaire I am calling Clock Patience. This is a bare bones implementation of the core game. It is open source and all of the code, including creating the user interface, is contained in the stack script.

This stack can be a scaffold for anyone wishing to modify it as they want. Some ideas: incorporate card suit graphic icons; incorporate card animation to move selected card to its destination; add a timer and scoring.

[8/14 Update: I am reposting the card game after troubleshooting. Fingers crossed it works now. ]

- Mike
Attachments
Clock Patience.livecode.zip
(20.71 KiB) Downloaded 6 times
Last edited by Hutchboy on Thu Aug 14, 2025 12:30 pm, edited 2 times in total.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by dunbarx » Wed Aug 13, 2025 3:57 pm

Mike.

I do not see how to even start playing. After hitting "New Game", nothing reacts.

Craig

Hutchboy
Posts: 118
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by Hutchboy » Wed Aug 13, 2025 5:22 pm

Hi,

Craig...you're right, something isn't working so I've taken it down and will repost when fixed. Worked fine here at home but when I downloaded the file I placed in the forum and ran it I ran into the problem you had.


-Mike

Hutchboy
Posts: 118
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by Hutchboy » Wed Aug 13, 2025 6:32 pm

Hi,

I'm taking the game down until I get it sorted why it works at home but not when I upload it here.

- Mike
Last edited by Hutchboy on Wed Aug 13, 2025 9:59 pm, edited 1 time in total.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by dunbarx » Wed Aug 13, 2025 7:55 pm

Mike.

Nope.

When I select "New Game", what might(should) be my next action? A click? Drag?

Craig

Hutchboy
Posts: 118
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by Hutchboy » Wed Aug 13, 2025 9:57 pm

Hi,

Craig and all,

I've uploaded the fixed game to my original post above. Next step is to add a timer and to make it easier to see which is the current card. With the core logic working I will probably make an enhanced version with icons, 52 individual cards and add dragging actions.

Fingers crossed...

-Mike

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by dunbarx » Thu Aug 14, 2025 1:48 pm

Mike.

Nothing seems to happen anywhere after pressing "New Game". What do I do (can I do) next? Something says "Flip from pile 13".

How?

Craig

Hutchboy
Posts: 118
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by Hutchboy » Thu Aug 14, 2025 4:06 pm

Craig,
Just to double check I downloaded the zip file I posted earlier, unpacked it and the game performed as it should.

If you start a new game you will see a random new card showing on the center card pile. The only thing you do next is click on the card pile at the clock location matching the current card.

Let's say, for example, that you see a 7H on the center pile when the game starts. 7H represents the seven of hearts card. You locate the pile at the 7:00 clock position and click on that pile to display the next card that needs to be "moved" to the correct pile.

If you start a new game and just press the "Step" button a few times and you will see the pattern.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by dunbarx » Thu Aug 14, 2025 5:41 pm

Hmmm.

When I click on "New Game", the center stack shows a valid card. I just did it and got "7C", seven of clubs. The field in the lower left says to flip from pile 13, the center pile, I assume onto the seventh pile.

Nothing I do, clicking, dragging, anything, actually changes anything. Clicking at or dragging from any stack at all, in fact, does nothing. What does "flip" mean? how do I move a card at all? How do I change anything, even if incorrectly?

Craig

Hutchboy
Posts: 118
Joined: Wed Aug 01, 2018 2:57 pm
Contact:

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by Hutchboy » Thu Aug 14, 2025 8:08 pm

Craig,

I developed this game in version 10.0.2, the latest stable version of LiveCode and also tested it in LiveCode Create DP7 with no issues. What version of LC are you using so I can test it on that version? Also, if you press the Auto-Play button does the game play to the end?

I can't think of another reason why this won't work for you. I'd like to hear if anyone else is having a problem with the game I reposted here today.

Typically I develop for 10.0.0 + versions of LiveCode, including LiveCode Create DP7.

-Mike

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10330
Joined: Wed May 06, 2009 2:28 pm

Re: Card Games: Clock Patience (aka Clock Solitaire)

Post by dunbarx » Thu Aug 14, 2025 8:48 pm

Mike.

Aha. Maybe.

I am in 9.6.9

Craig

Post Reply