Recent

Author Topic: Hearts  (Read 2572 times)

neophyte

  • New member
  • *
  • Posts: 8
Hearts
« on: August 02, 2020, 05:22:21 am »
I have written a program to play the card game hearts. It's not a super-duper pro level product, just my own little effort. But it does have some interesting things in it that I put in for fun, like being able to reveal hands, adjust the rate of play, replay a hand, and an auto-play mode. It's GPL'ed.

More info and pointers to the download and source are here.

Handoko

  • Hero Member
  • *****
  • Posts: 4383
  • My goal: build my own game engine using Lazarus
Re: Hearts
« Reply #1 on: August 02, 2020, 06:26:46 am »
Hello neophyte,
Welcome to the forum.

That's look good.
Thank you for released it in GPL, so others can learn from it.

You should consider to also put it on Project Using Lazarus > Games:
https://wiki.freepascal.org/Projects_using_Lazarus

neophyte

  • New member
  • *
  • Posts: 8
Re: Hearts
« Reply #2 on: August 02, 2020, 05:34:22 pm »
Thanks to the Lazarus and Freepascal teams for great tools and language capabilities. The "set" type made programming card operations easy and a lot of fun.

neophyte

  • New member
  • *
  • Posts: 8
Re: Hearts
« Reply #3 on: September 04, 2020, 10:07:50 pm »
New version of Hearts date-stamped September 3, 2020. Computer opponents are now harder to defeat. They also take the relative scores of other players into account when selecting cards to play. As before, source is here.

trev

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1683
  • Former Delphi 1-7, 10.2 user
Re: Hearts
« Reply #4 on: September 05, 2020, 03:44:02 am »
Cool game  8-)

I've added it to the Games Gallery.
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 x86_64 Xcode 13.1
Lazarus 2.3, FPC 3.3.1 macOS 12.0.1 aarch64 Xcode 13.1
Lazarus 2.3, FPC 3.2.2 FreeBSD 13.0 amd64 VM
Lazarus 2.3, FPC 3.2.2 FreeBSD 12.2 amd64 VM
Lazarus 2.1 r61574 FPC 3.0.4 Ubuntu 20.04 VM
Lazarus 2.0.10 FPC 3.2.0 Win10 VM

neophyte

  • New member
  • *
  • Posts: 8
Re: Hearts
« Reply #5 on: September 05, 2020, 03:27:56 pm »
Thank you!

 

TinyPortal © 2005-2018