Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Games
»
Solitaire
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
[SOLVED] TPrintDialog Pro...
by
spuds
[
Today
at 01:30:20 am]
TPairsplitter could be be...
by
jamie
[
Today
at 12:36:34 am]
FloatToStr issue
by
J-G
[
Today
at 12:06:38 am]
Array of structure -> str...
by
jamie
[June 05, 2026, 11:52:24 pm]
Curved text in Lazreport
by
paweld
[June 05, 2026, 09:37:27 pm]
Release ray4laz 6.0
by
Fred vS
[June 05, 2026, 09:06:27 pm]
Very rough version of a s...
by
Hansvb
[June 05, 2026, 09:02:17 pm]
Pascal for AI Agent CLI T...
by
Martin_fr
[June 05, 2026, 08:01:11 pm]
Read/Parse PDB file to ge...
by
tooknox
[June 05, 2026, 07:36:13 pm]
storing assets for releas...
by
flowCRANE
[June 05, 2026, 07:30:13 pm]
FPC Unleashed (inline var...
by
BildatBoffin
[June 05, 2026, 06:46:14 pm]
Benchmark aligned vs unal...
by
LeP
[June 05, 2026, 06:33:08 pm]
TstringGrid read cell col...
by
hedgehog
[June 05, 2026, 06:29:11 pm]
Lazarus Main and Gnome/Wa...
by
JgQDev
[June 05, 2026, 06:16:31 pm]
Range checks and `Move` o...
by
ASerge
[June 05, 2026, 05:17:19 pm]
"Identifier idents no mem...
by
PawelO
[June 05, 2026, 04:15:49 pm]
Why is var after type in ...
by
Warfley
[June 05, 2026, 02:36:17 pm]
SnapModbus
by
ThomasK
[June 05, 2026, 01:40:22 pm]
Spell checking for IDE so...
by
Martin_fr
[June 05, 2026, 11:48:38 am]
Fix alt+letter dont show ...
by
mpau
[June 05, 2026, 04:02:50 am]
Conscious Artificial Inte...
by
schuler
[June 04, 2026, 11:14:34 pm]
LazNodeEditor (visual nod...
by
simone
[June 04, 2026, 08:05:18 pm]
Flamerobin error-message
by
tdb
[June 04, 2026, 05:31:45 pm]
Activate the find panel o...
by
maxnd
[June 04, 2026, 05:31:28 pm]
PDF generator
by
tdb
[June 04, 2026, 05:23:09 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Solitaire (Read 8348 times)
neophyte
New member
Posts: 9
Solitaire
«
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
. Program is GPL'ed and source on
GitHub
.
Logged
Handoko
Hero Member
Posts: 5543
My goal: build my own game engine using Lazarus
Re: Solitaire
«
Reply #1 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.
Logged
MarkMLl
Hero Member
Posts: 8572
Re: Solitaire
«
Reply #2 on:
February 23, 2021, 04:44:00 pm »
Please could we have Pentago next :-)
MarkMLl
Logged
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories:
https://github.com/MarkMLl?tab=repositories
Lulu
Sr. Member
Posts: 405
Re: Solitaire
«
Reply #3 on:
February 23, 2021, 08:06:32 pm »
Thanks to share !
Logged
wishing you a nice life!
GitHub repositories
https://github.com/Lulu04
winni
Hero Member
Posts: 3197
Re: Solitaire
«
Reply #4 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
«
Last Edit: February 23, 2021, 08:16:37 pm by winni
»
Logged
neophyte
New member
Posts: 9
Re: Solitaire
«
Reply #5 on:
February 24, 2021, 02:36:28 am »
Thanks for everybody's interest and suggestions!
Logged
Bad Sector
Jr. Member
Posts: 69
Re: Solitaire
«
Reply #6 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.
Logged
Kostas "
Bad Sector
" Michalopoulos
Runtime Terror
neophyte
New member
Posts: 9
Re: Solitaire
«
Reply #7 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:
most of the time there's only one place a card can go, so no strategy is involved (although I guess you could argue that clicking relieves you of having to notice if there is a play at all)
just automatically clicking can be a self-defeating strategy - sometimes you shouldn't move a card just because it can, because it limits future builds and moves
clicking is therefore for the advanced(?) player, who can quickly decide whether to click or just let the card be, and makes for a faster, but still thoughtful game
I guess I built my own personal likes/dislikes into the game. Thank you for your comment.
Logged
xinyiman
Hero Member
Posts: 2261
Re: Solitaire
«
Reply #8 on:
March 05, 2021, 10:16:00 am »
Build and run on Mac OS. Good job.
Logged
Win10, Ubuntu and Mac
Lazarus: 2.1.0
FPC: 3.3.1
neophyte
New member
Posts: 9
Re: Solitaire
«
Reply #9 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.
Logged
loaded
Hero Member
Posts: 878
Re: Solitaire
«
Reply #10 on:
May 11, 2023, 06:10:25 pm »
In the old days;
CTRL+SHIFT+F10
Logged
The more memory computers have, the less memory people seem to use. 😅
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
Graphics and Multimedia
»
Games
»
Solitaire
TinyPortal
© 2005-2018