So I thought that this project can be used as a motivator to teach kids programming :) because it's like look kids, with this simple code, you can generate these awesome cards, isn't it great?
Squib: A Ruby DSL for prototyping card and board games
11–20 of 45 posts
Re: Squib: A Ruby DSL for prototyping card and board games
#12Earlier quoted context omitted.
Everyone should write their own static site generator.
I wasn't talking about a new one, but using an existing one to generate card-style pages. One could then run a script to render them to svg/png images by using something like Phantom.js. Just an idea.
Writing one from scratch is also fun and instructive as a programming exercise. A classic Input->Process->Outout problem, so many ways to approach it, huge scope for elegant engineering and, once you are done, a really great tool for your specific needs.
Re: Squib: A Ruby DSL for prototyping card and board games
#13Re: Squib: A Ruby DSL for prototyping card and board games
#14Re: Squib: A Ruby DSL for prototyping card and board games
#15Looks cool. I don't know ruby though.. :(
Re: Squib: A Ruby DSL for prototyping card and board games
#16Re: Squib: A Ruby DSL for prototyping card and board games
#17I'm mostly interested in rules based systems and AI and my research was leaning towards creating a DSL for describing players' strategy. I started out doing it in Prolog as an internal DSL but switched to ANTLR and changed it to an external DSL. Ruby is a pretty great choice which I considered before moving to ANTLR.
Edit: As this is geared more towards creating physical prototypes you should post this on boardgamegeek if you haven't already.
Re: Squib: A Ruby DSL for prototyping card and board games
#18I shared it with my colleague who's not into programming but loves board games, that got him quite excited. So I thought that this project can be used as a motivator to teach kids programming :) because it's like look kids, with this simple code, you can generate these awesome cards, isn't it great?
Maybe a DSL for describing simple 3D printable stuff would be an option if a printer is available.
Re: Squib: A Ruby DSL for prototyping card and board games
#19Earlier quoted context omitted.
I wasn't talking about a new one, but using an existing one to generate card-style pages. One could then run a script to render them to svg/png images by using something like Phantom.js. Just an idea.
I gathered, however I passionately believe (through personal experience) that making an existing Static Site Generator do _exactly_ the thing you want is more pain and effort than just writing one from scratch. Writing one from scratch is also fun and instructive as a programming exercise. A classic Input->Process->Outout problem, so many ways to approach it, huge scope for elegant engineering and, once you are done,…
A larger percentage of the developers I know have their static site generators so I completely agree.