Coder Social home page Coder Social logo

crossword-cards's Introduction

The Little Things In Life New Year's Crossword Card Generator

This is the code for a New Year's card generator. The cards consist out of a crossword puzzle about the happy little things in life.

The generation of the crosswords is an updated version of the Crossword Generator by satchamo

An example of a generated crossword

Installation

Well... this is a mix of NodeJS, Python and Bash scripts. ZX is the glue between them all.

Google sheets

The clues for the crossword, the names for the addressed (their names are in the crossword...) and the adresses (for the envelope) are all in a Google Sheet. Get yourself a Google API key and put it in the .env file.

A B C D E F G H I J K L M
code namesstring name1 name2 name3 name4 name5 addressline1 addressline2 addressline3 addressline4
=leftb(REGEXREPLACE(md5(B1);"[0,1]+";"");6) =LOWER(CONCATENATE(C1:I1)) ... ... ... ... ... ... ... ... ... ... ...

Output directories

The output directories are not in the repo. Create them yourself:

crosswords/
gcode/clues/
gcode/envelop/
gcode/grid/
svgs/clues/
svgs/envelop/
svgs/grid/
svgs/solution/

Vpype

Awesome tool to manipulate SVGs. See Vpype for installation instructions.

Usage

These are the commands one can run:

  • --penup - move the pen up
  • --pendown - move the pen down
  • --generate - generate the crosswords (that are not yet generated). This will make the crosswords themselves, saved as a JSON file. It will also generate the SVGs for the clues, the grid, the envelope and the solution. Finally, it will transform them into gcode.
  • --code and --type - to plot a single gcode file. One can choose 'grid', 'clues' or 'envelop' as the type and a code as the code.
  • --conveyor - to plot all the gcode files that are not yet listed in the plotted.txt file. When finished plotting a file, it will ask you to press any key to coninue. This way you can change the paper.

crossword-cards's People

Contributors

simonvanherweghe avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.