Recent

Author Topic: Hearts  (Read 1033 times)

neophyte

  • New member
  • *
  • Posts: 6
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: 4056
  • 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: 6
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: 6
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: 1278
  • 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.1 r64368 FPC 3.3.1 r48100 macOS 10.14.6 Xcode 11.3.1
Lazarus 2.1 r64455 3.3.1 r48688  macOS 11.2 aarch64 Xcode 12.4
Lazarus 2.1 r61574 3.3.1 r42318 FreeBSD 12.1 amd64 VMware VM
Lazarus 2.1 r61574 3.0.4 Ubuntu 20.04 Parallels VM
Lazarus 2.0.10 3.2.0 Win10 Parallels VM

neophyte

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

 

TinyPortal © 2005-2018