Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Hearthstone Deck Tracker | 4,621 | 6 days ago | 633 | C# | ||||||
A deck tracker and deck manager for Hearthstone on Windows | ||||||||||
Deck Of Cards | 2,762 | 13 | 1 | a year ago | 6 | April 24, 2017 | 3 | other | JavaScript | |
Deck of Cards (old version) | ||||||||||
Pythonplantsvszombies | 2,750 | 4 days ago | 33 | Python | ||||||
a simple PlantsVsZombies game | ||||||||||
Mage | 1,519 | 21 hours ago | 1,289 | mit | Java | |||||
Magic Another Game Engine | ||||||||||
Idle_master | 1,475 | 3 years ago | 151 | gpl-2.0 | C# | |||||
Get your Steam Trading Cards the Easy Way | ||||||||||
Pretendyourexyzzy | 1,131 | a year ago | 83 | bsd-2-clause | Java | |||||
A web clone of the card game Cards Against Humanity. | ||||||||||
Squib | 868 | 31 | 2 months ago | 40 | October 26, 2021 | 43 | mit | Ruby | ||
A Ruby DSL for prototyping card games. | ||||||||||
Deepstack Leduc | 596 | 5 years ago | 13 | Lua | ||||||
Example implementation of the DeepStack algorithm for no-limit Leduc poker | ||||||||||
Cardsagainst | 517 | 3 years ago | 3 | mit | Swift | |||||
An iOS game for horrible people | ||||||||||
Hearthbreaker | 474 | 5 years ago | 11 | mit | Python | |||||
A Hearthstone: Heroes of WarCraft Simulator for the purposes of Machine Learning and Data Mining |
Squib is a Ruby DSL for prototyping card and board games. Write a little bit of Ruby, define your deck's stats, then compile your game into a series of images ready for print-and-play or even print-on-demand. Squib is very data-driven and built on the principle of Don't Repeat Yourself. Think of it like nanDeck done "the Ruby way". Squib supports:
xlsx
and csv
filesSquib is based on the Cairo graphics rendering engine, the library of choice for WebKit, Gecko, Inkscape and many, many others.
Check this out.
require 'squib'
Squib::Deck.new(cards: 2) do
text str: %w(Hello World!)
save_png
end
We just created a 2-card deck with "Hello" on the first card, and "World" on the second, and saved them out to PNGs.
Wanna see more? Check out the website: http://andymeneely.github.io/squib/
Squib requires Ruby 2.5 or later.
Install it yourself with:
$ gem install squib
If you're using Bundler, add this line to your application's Gemfile:
gem 'squib'
And then execute:
$ bundle
More info: http://squib.readthedocs.org/en/latest/install.html
After installing Squib, you can create a project and run your first build like this:
$ squib new my-cool-game
$ cd my-cool-game
$ ruby deck.rb
The squib new
command will generate files and folders like this:
├── .gitignore
├── ABOUT.md
├── Gemfile
├── IDEAS.md
├── PLAYTESTING.md
├── PNP NOTES.md
├── RULES.md
├── Rakefile
├── _output
│ └── gitkeep.txt
├── config.yml
├── deck.rb
└── layout.yml
12 files
Also:
samples
directory in the source repository has lots of examples.Squib tries to keep you DRY (Don't Repeat Yourself) with the following features:
range
parameter in Squib is very flexible, meaning that one text
command can specify different text in different fonts, styles, colors, etc. for each card. If you find yourself doing multiple text
command for the same field across different ranges of cards, there's probably a better way to condense.config.yml
file.Want to run in a controlled environment? We've got a Docker image on DockerHub
Here's one way to run it. On the command line, go to the root of your repository. With these commands, we'll map the current directory to the /usr/src/app
directory in the Docker image. When squib-in-docker read & writes files from there, it'll write it back out to your current directory.
Assuming you have a script called hello.rb:
On Windows:
docker run --rm -v "%cd%":/usr/src/app andymeneely/squib ruby hello.rb
On Macs:
docker run --rm -v "$PWD":/usr/src/app andymeneely/squib ruby hello.rb
This will create a folder called _output
in your current directory and write the output of the script there.
We're still working on ways to customize your own Docker build (e.g. document building, custom fonts, etc.) with your own Dockerfile. Pull requests and ideas welcome!
See this page
Truthfully, I just thought it was a cool, simple word that was not used much in the Ruby community nor the board game community. But, now that I've committed to the name, I've realized that: