Skip to content

PRIORITY - Need help collecting challenges #3

@dare892

Description

@dare892

Please help collect 'challenges'. Contribute now by creating new challenges as seed data.
Currently we are open to collecting for the first levels, beginner and easy.

Instructions

  1. Find a challenge on the web, or create your own for either the beginner or the easy difficulty. You will need the following:
  • title
  • description
  • input_type (this is what the test data inputs type is - 'integer' or 'text')
  • answers (more than 2)
  1. In the lib/tasks/challenges, there are 5 folders (beginner, easy, medium, hard, master). Pick either the beginner or the easy folder to create a challenge file with the name in the following format : 'YYYYMMDD_simple_name_of_challenge.json'. (ex> 20191001_warmup.json)

  2. Follow the format of other existing files to populate your file.

- Make sure the description asks for a function named readyPlayerCode()
- For the answers, at the minimum you should have two, one with the 'is_test' flag = true and one without other. 
- Answers with the is_test flag NOT set will show up on the player's screen as samples.
- Answers with the is_test flag = true will not show up on the player's screen. They will be used on the backend to validate the response.    

Here is a sample :

{
  "title": "Beginner Challenge 4",
  "description": "Have the function readyPlayerCode(str) take the str parameter being passed and capitalize the first letter of each word. Words will be separated by only one space.",
  "input_type": "text",
  "answers": [
    {
      "input": "hello world",
      "output": "Hello World"
    },
    {
      "input": "i ran there",
      "output": "I Ran There",
      "is_test": true
    }
  ]
}
  1. run the following to make sure your json file is in valid format:
bundle exec rake db:validator
  1. Once passed, create a PR and paste the link on the thread so others can see.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions