Recent

Author Topic: Hearts  (Read 914 times)

neophyte

  • Newbie
  • Posts: 4
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: 4007
  • 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

  • Newbie
  • Posts: 4
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

  • Newbie
  • Posts: 4
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: 1191
  • 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.
o Lazarus 2.1.0 r64368, FPC 3.3.1 r48100, macOS 10.14.6, Xcode 11.3.1
o Lazarus 2.1.0 r64392, FPC 3.3.1 Jan 13 21:24, macOS 11.1 (aarch64), Xcode 12.3
o Lazarus 2.1.0 r61574, FPC 3.3.1 r42318, FreeBSD 12.1 amd64 (VMware VM)
o Lazarus 2.1.0 r61574, FPC 3.0.4, Ubuntu 20.04 (Parallels VM)

neophyte

  • Newbie
  • Posts: 4
Re: Hearts
« Reply #5 on: September 05, 2020, 03:27:56 pm »
Thank you!

 

TinyPortal © 2005-2018