You won't want to miss out on the world-class speakers at TNW Conference this year 🎟 Book your 2 for 1 tickets now! This offer ends on April 22 →

This article was published on June 29, 2015

Done with Cards Against Humanity? Squib is a version of Ruby for coding your own card games


Done with Cards Against Humanity? Squib is a version of Ruby for coding your own card games

Cards Against Humanity has been a huge success, but it also has a lot of critics. If you want to build your own card game and have some knowledge of Ruby, Squib will be right up your street.

The Ruby Domain Specific Language (DSL) is available on GitHub and lets you define your game deck’s stats, then compile it into a series of images ready to print.

The implementation is based on the Cairo graphics rendering engine, which is used by WebKit, Gecko and Inkscape among others.

Here’s a code sample from the Squib devs followed by the cards it generates:

Screenshot 2015-06-29 10.43.06

Screenshot 2015-06-29 10.44.47

Let me know if you end up making your own game with Squib and share the links in the comments.

Squib [Andy Meneely]

Read nextResources to help you get started on learning Ruby

Get the TNW newsletter

Get the most important tech news in your inbox each week.