Latest Threat Research:SANDWORM_MODE: Shai-Hulud-Style npm Worm Hijacks CI Workflows and Poisons AI Toolchains.Details
Socket
Book a DemoInstallSign in
Socket

moul.io/einstein-riddle-generator

Package Overview
Dependencies
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moul.io/einstein-riddle-generator

Go Modules
Version
v0.0.0-20210116084536-bab936006a61
Version published
Created
Source

einstein-riddle-generator

:game_die: Einstein Riddle Generator

GoDoc

Check out the demo on Appspot !

Install

$ go get github.com/moul/einstein-riddle-generator/...

Example

$ einstein-riddle
Riddle
------
- job:cop == pet:shark
- room:kitchen == nationality:scottish
- house-color:red == pet:beaver
- nationality:spannish == house-color:pink
- job:scientist == room:bedroom
- room:restroom == job:designer
- job:teacher == pet:poney
- pet:bird is direct on the right of job:architect
- nationality:american == room:bathroom
- nationality:french == room:garden
- house-color:yellow is on the left of nationality:english
- house-color:blue is in the middle
- room:bedroom == nationality:english
- pet:beaver is on the right of room:bathroom
- job:architect is direct on the right of nationality:french
- job:cop is on the far left
- pet:shark is on the far left
- nationality:american is on the far left

- where is pet:snake ?
- where is house-color:magenta ?

Answer
------
              1             2            3              4             5
room          2: bathroom   1: garden    1: kitchen     1: restroom   2: bedroom
job           2: cop        1: teacher   2: architect   1: designer   1: scientist
pet           2: shark      1: poney     0: snake       1: bird       2: beaver
house-color   0: magenta    1: yellow    1: blue        1: pink       1: red
nationality   2: american   2: french    1: scottish    1: spannish   2: english

License

MIT

FAQs

Package last updated on 16 Jan 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts