DEV Community

Cover image for Create your own card game with OWASP® Cornucopia
johan sydseter for OWASP® Foundation

Posted on

Create your own card game with OWASP® Cornucopia

As you might now, we recently released OWASP® Cornucopia 2.0 with two new editions, but did you know that you can use OWASP® Cornucopia to create your own card game?

Cornucopia is the Latin word for abundance and we are not satisfied with only using 2 card games, no, we use all kind of games as long as they are fun and can help increase application security awareness and posture, but why stop there?
Why not create your software architecture game, privacy game, coding game or design game like "cards against architecture", "OWASP Cornucopia - Privacy Edition", "cards against Java" or whatever you like.
OWASP® Cornucopia comes with a card generator tool that can take a Indesign markup language document and a yaml document and turn it into a card deck and you are free to use our templates to get started. Create your design using Scribus or Indesign and add the text to your yaml file. This way, you can use our tools to change the text with a simple text editor and translate your card game into multiple languages, versions and editions. Yes, we have support for managing this too.

This is how.

  1. Clone our repository
  2. Install pyenv or pyenv-win
  3. Then...
cd cornucopia
pyenv install 3.10 # If you don't have python ver >= 3.10 already installed.
pip install -r requirements.txt
pipenv install
Enter fullscreen mode Exit fullscreen mode

Create a yaml document with your text that looks like this: source/against-security-1.00-en.yaml

Create your Indesign markup language document using Adobe Indesign or Scribus.
It should look like this: ./resources/templates/against_security_ver_cards_tarot_lang.idml

Then...

python scripts/convert.py -t tarot -l en -lt cards  -v 1.00 -e against-security -d -i ./resources/templates/against_security_ver_cards_tarot_lang.idml -o cards-against_security_1.0_cards_tarot_en.idml
Enter fullscreen mode Exit fullscreen mode

If you have Images and fonts make sure to place them in the same folder as your idml file, then zip it and send it to whoever you want.

We would love to hear about your projects, don't be afraid, get in touch with us, you can send us a question to our Github forum.


Learn how to play OWASP Cornucopia:


OWASP is a non-profit foundation that envisions a world with no more insecure software. Our mission is to be the global open community that powers secure software through education, tools, and collaboration. We maintain hundreds of open source projects, run industry-leading educational and training conferences, and meet through over 250 chapters worldwide.

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

Top comments (2)

Collapse
 
john_snow_d7455c7a958bc67 profile image
John Snow

Would this article help me to create a game like hailey's treasure adventure iphone.

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

Image of Timescale

Timescale – the developer's data platform for modern apps, built on PostgreSQL

Timescale Cloud is PostgreSQL optimized for speed, scale, and performance. Over 3 million IoT, AI, crypto, and dev tool apps are powered by Timescale. Try it free today! No credit card required.

Try free

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay