Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A commandline version of The Color Code test

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 README.md
Octocat-spinner-32 TAKEDOWN.md
Octocat-spinner-32 get-example.js
Octocat-spinner-32 package.json
Octocat-spinner-32 questionnaire.js
Octocat-spinner-32 tally.js
README.md

The Color Code Test

Now Available for the Mighty Commandline!

This is a simple commandline questionaire that asks the questions from The Color Code in random order and the answers also randomized.

The is particularly useful for people like myself who have pre-conceived notions about their personality and want to take the test in a less-biased fashion (meaning not knowing which answer directly relates to which color).

npm install -g color-code
color-code

Upon completion of the test, the results are shown and saved in a JSON file (the path to which is printed to the screen).

Generic Questionnaire

The name of the test is somewhat of a misnomer. Although originally designed for taking The Color Code test with friends, it can be used for any type of test. Simply specify the name of the questionaire you would like to take.

color-code any-test.json

Test Format

The format of questionnaire.json is rather straight-forward.

For example, let's say you wanted your own version of the Hogwarts Sorting Hat House Quiz, you would create a file like this:

{
    "title": "Hogwarts Sorting Hat House Quiz"
  , "defaultQuestion": "Which is more true of you?"
  , "categories": [
        "Gryffindor"
      , "Hufflepuff"
      , "Ravenclaw"
      , "Slytherin"
    ]
  , "questions": [
        [
              null
            , "values bravery, daring, nerve, and chivalry"
            , "values hard work, patience, loyalty, and fair play rather than a particular aptitude"
            , "values intelligence, knowledge, and wit"
            , "values ambition, cunning and resourcefulness"
        ]
      , [
              "Which house do you feel in your heart you belong to?"
            , "Gryffindor"
            , "Hufflepuff"
            , "Ravenclaw"
            , "Slytherin"
        ]
    ]
}

http://www.thealmightyguru.com/Reviews/HarryPotter/Docs/Quiz-House.html

Something went wrong with that request. Please try again.