Recent

Author Topic: Solitaire  (Read 303 times)

neophyte

  • New member
  • *
  • Posts: 6
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.

Handoko

  • Hero Member
  • *****
  • Posts: 4048
  • 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.

MarkMLl

  • Hero Member
  • *****
  • Posts: 2061
Re: Solitaire
« Reply #2 on: February 23, 2021, 04:44:00 pm »
Please could we have Pentago next :-)

MarkMLl
Turbo Pascal v1 on CCP/M-86, multitasking with LAN and graphics in 128Kb.
Pet hate: people who boast about the size and sophistication of their computer.

Lulu

  • Full Member
  • ***
  • Posts: 130
Re: Solitaire
« Reply #3 on: February 23, 2021, 08:06:32 pm »
Thanks to share !  :)
fpc 3.2.0 Lazarus 2.0.10  -  AMD A8-6600K  -  Windows 10  64bits

winni

  • Hero Member
  • *****
  • Posts: 2187
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 »

neophyte

  • New member
  • *
  • Posts: 6
Re: Solitaire
« Reply #5 on: February 24, 2021, 02:36:28 am »
Thanks for everybody's interest and suggestions!

 

TinyPortal © 2005-2018