Lazarus

Programming => Graphics and Multimedia => Games => Topic started by: neophyte on February 23, 2021, 03:55:20 pm

Title: Solitaire
Post by: neophyte on February 23, 2021, 03:55:20 pm
Definitely not needed, but I wrote it anyway just to have fun moving cards around the screen. Similar to Hearts program released last year. It comes with hinting, autoplay, and some animation of card movements (which can be turned off). Moving cards is by dragging with mouse, or more simply and quicker by clicking. A flick of the mouse wheel promotes multiple cards quickly.

More details on my web page (https://web.ncf.ca/di874/computers/solitaire/solitaire.html). Program is GPL'ed and source on GitHub (https://github.com/oldgizahub/solitaire).
Title: Re: Solitaire
Post by: Handoko on February 23, 2021, 04:32:08 pm
It works on Linux, nice job!
Thank you for sharing it.

I saw the 52 cards generated at design-time. If I'm allowed, I would suggest to use an array, create and load the cards at runtime.
Title: Re: Solitaire
Post by: MarkMLl on February 23, 2021, 04:44:00 pm
Please could we have Pentago next :-)

MarkMLl
Title: Re: Solitaire
Post by: Lulu on February 23, 2021, 08:06:32 pm
Thanks to share !  :)
Title: Re: Solitaire
Post by: winni on February 23, 2021, 08:08:08 pm
Hi!

There is no need to create some carddecks again.
Today a complete deck is saved in one svg file.

For example the decks for KDE Aislerriot are located at
/usr/share/aisleriot/cards

So load one svg at start and you can copy every card on the fly at runtime.

Only Aislerriot offers 12 different decks. But there are so much more.

Example : guyenne-classic.svgz als png in the attachment

Winni


Title: Re: Solitaire
Post by: neophyte on February 24, 2021, 02:36:28 am
Thanks for everybody's interest and suggestions!
Title: Re: Solitaire
Post by: Bad Sector on March 04, 2021, 11:49:53 pm
Neat little game but i think it is too lenient by allowing you to click on a card and have the program do the move automatically :-P. A big element of Solitaire is you figuring out where the next move is and the program trivialized this since you can just click click click everywhere and make a move.
Title: Re: Solitaire
Post by: neophyte on March 05, 2021, 03:04:00 am
That's a valid criticism. And I certainly considered whether to have this capability or not just because of that point. I decided to incorporate it for these reasons:
I guess I built my own personal likes/dislikes into the game. Thank you for your comment.
Title: Re: Solitaire
Post by: xinyiman on March 05, 2021, 10:16:00 am
Build and run on Mac OS. Good job.
Title: Re: Solitaire
Post by: neophyte on March 05, 2021, 02:44:44 pm
Thanks for that! I don't have access to a Mac and wondered if it would run.
Title: Re: Solitaire
Post by: loaded on May 11, 2023, 06:10:25 pm
In the old days;
CTRL+SHIFT+F10
TinyPortal © 2005-2018