Lazarus

Programming => Graphics and Multimedia => Games => Topic started by: neophyte on August 02, 2020, 05:22:21 am

Title: Hearts
Post by: neophyte 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 (http://web.ncf.ca/di874/computers/hearts/hearts.html).
Title: Re: Hearts
Post by: Handoko 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 (https://wiki.freepascal.org/Projects_using_Lazarus)
Title: Re: Hearts
Post by: neophyte 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.
Title: Re: Hearts
Post by: neophyte on September 04, 2020, 10:07:50 pm
New version of Hearts (https://web.ncf.ca/di874/computers/hearts/hearts.html) 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 (https://github.com/oldgizahub/hearts).
Title: Re: Hearts
Post by: trev on September 05, 2020, 03:44:02 am
Cool game  8-)

I've added it to the Games Gallery (https://wiki.lazarus.freepascal.org/Projects_using_Lazarus_-_Games#Common_Loon_Hearts).
Title: Re: Hearts
Post by: neophyte on September 05, 2020, 03:27:56 pm
Thank you!
TinyPortal © 2005-2018