Save over 40% when you secure your tickets today to TNW Conference 💥 Prices will increase on November 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:

The 💜 of EU tech

The latest rumblings from the EU tech scene, a story from our wise ol' founder Boris, and some questionable AI art. It's free, every week, in your inbox. Sign up now!

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.