Free codes for devs: Cardgame Library’s source code
Free stuff is always great. Free stuff that helps in making more free stuff? Even better!
Over at our forums, Raphael released some code other devs could use to build their very card games. Originally meant as card counting mechanism test for Black Jack, the Cardgame Library he’s releasing also has some sample code for an Open Standard Types Library (OSTL). Raphael writes,
The goal was to make the code as clean as possible and provide all basic functions for a type of French tarock cardgame. As it stands, you can create decks with variable number of card sets in it (each set containing 52 cards), shuffle decks, draw cards from decks, put cards onto discard piles, create player hands and put and discard cards into/from the hand.
As it is, the file we’re putting up is strictly code, but developers can build upon it to make their own special games, integrate it into their existing applications as a minigame, or simply study how the code works and see how they can apply the concepts they’ve learned from it. If you’d like to ask him for tips on how to maximize the benefits of using his code on your projects, or if you simply want to give him props, drop him a line on our forums, or visit his blog and ask him why he hasn’t updated it with this nifty release.
In the meantime, if anyone in the homebrew community“>homebrew community can start thinking up ways to implement his code into a QJ battle cards game, we’re all ears.
Download: [Cardgame Library (source code)]
Discuss: [Forum Release Thread]
Free stuff is always great. Free stuff that helps in making more free stuff? Even better!
Over at our forums, Raphael released some code other devs could use to build their very card games. Originally meant as card counting mechanism test for Black Jack, the Cardgame Library he’s releasing also has some sample code for an Open Standard Types Library (OSTL). Raphael writes,
The goal was to make the code as clean as possible and provide all basic functions for a type of French tarock cardgame. As it stands, you can create decks with variable number of card sets in it (each set containing 52 cards), shuffle decks, draw cards from decks, put cards onto discard piles, create player hands and put and discard cards into/from the hand.
As it is, the file we’re putting up is strictly code, but developers can build upon it to make their own special games, integrate it into their existing applications as a minigame, or simply study how the code works and see how they can apply the concepts they’ve learned from it. If you’d like to ask him for tips on how to maximize the benefits of using his code on your projects, or if you simply want to give him props, drop him a line on our forums, or visit his blog and ask him why he hasn’t updated it with this nifty release.
In the meantime, if anyone in the homebrew community“>homebrew community can start thinking up ways to implement his code into a QJ battle cards game, we’re all ears.
Download: [Cardgame Library (source code)]
Discuss: [Forum Release Thread]