Copyleft Games

Intro to Genie: Word Mash

Genie is a relatively new language similar to Python but compiles to C. We use it because its easy to learn, works well with many of our libraries, and is not itself a runtime dependency. This beginner task is to build a basic familiarity with the language.

Using the documentation, our codebase as working examples, and other students for help - build a small Genie-based application which takes two words as command-line arguments and combines them to form two new words at a letter they have in common, ie, "lemon" and "preach" both have an "e", so they could be mashed to "leach-premon". If no common letter is found, it should print them hyphenated instead, such as "lemon" and "car" = "lemon-car".

When you've done, upload your work to the task.

Task tags

  • genie

Students who completed this task

Iris

Task type

  • code Code

Level

Beginner
close

2016