Jump to content
Gustavo 'Gus' Carreno

Object Pascal Card Framework

Recommended Posts

Hey Y'All,

 

With a possible code challenge in mind, I've created a framework to aid programmers with creating card games.

You can find it here: objpas-card-framework

Opinions, advice and PRs are very welcomed!! Especially because I'm aiming at getting a set of Delphi packages, and I need someone to create them.

Cheers,
Gus

  • Like 2

Share this post


Link to post

Hey Patrick,

7 hours ago, Patrick PREMARTIN said:

I don't have installed Lazarus on my VM but I didn't see where you store the cards images in your source files.

 

If you need some I've just created this repository from David Bellot SVG Cards with individual SVG images, PNG images and Delphi samples of use : https://github.com/DeveloppeurPascal/SVG-cards

Only the FrenchCard and the FrenchDeck have image support. You'll find that both have a TMemoryStream field to store the card front and the card back.
It doesn't make sense to store any image data in the base classes. I'm providing the most used, the French deck, in the package as an example. But any other type of deck, that's to the programmer to extrapolate from the French example.

 

And thanks very, very much for the card images!!
I haven't done it yet, but on the README.md file, I'll have 2 sections: Algorithms and Resources. Respectively a list different types of games and a list of card images.
I'll keep yours in mind and add it to the appropriate section!!

 

Cheers,

Gus

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×