DEV Community

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

Posted on • Edited 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.

Postmark Image

20% off for developers shipping features, not fixing email

Build your product without worrying about email infrastructure. Our reliable delivery, detailed analytics, and developer-friendly API let you focus on shipping features that matter.

Start free

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 Quadratic

Free AI chart generator

Upload data, describe your vision, and get Python-powered, AI-generated charts instantly.

Try Quadratic free

👋 Kindness is contagious

Dive into this thoughtful article, cherished within the supportive DEV Community. Coders of every background are encouraged to share and grow our collective expertise.

A genuine "thank you" can brighten someone’s day—drop your appreciation in the comments below!

On DEV, sharing knowledge smooths our journey and strengthens our community bonds. Found value here? A quick thank you to the author makes a big difference.

Okay