andymeneely / squib

A Ruby DSL for prototyping card games.
http://squib.rocks
MIT License
915 stars 66 forks source link

Integration with Card Game Simulator #289

Open andymeneely opened 4 years ago

andymeneely commented 4 years ago

Came across this: https://boardgamegeek.com/thread/2293210/card-game-simulator

https://www.cardgamesimulator.com/

Seems perfect for Squib people. Looks like you have to just post a JSON file, which maybe we could have Squib generate?

I'll look into this and report back. Would be really cool to have this easily integrate.

davidmfinol commented 4 years ago

I think there's an opportunity to have a "save_cgs" method that works similar to the "save_png" method, except it would also create a couple JSON files and output to a folder structured for CGS.

What do you think?

davidmfinol commented 2 years ago

Hey @andymeneely, I figured you closed this to reduce scope creep, as it may not be worth your time to try to setup some kind of integration. But would you be interested if I raised a PR with "save_cgs" (or "export_cgs"?) ?

andymeneely commented 2 years ago

Go for it! Yeah I was just doing some routine trimming of the backlog

andymeneely commented 2 years ago

Actually I'll re-open and give you some ideas. I'm going to be working on some other things but here's some thoughts...

andymeneely commented 2 years ago

Looks like CGS needs a couple of key files that Squib can help with. Here's some ways we could go about this:

Beyond that, I think the other files that CGS expects are things you can do in plain ol' Ruby, and it's just a matter of showing people how to do it.

For my own testing, I'd like to take one of my existing card games, called Victory Point Salad (https://github.com/andymeneely/victory-point-salad) and get it into CGS to see how it goes.