Back
Close

How to add a Quiz

A quiz is described using the following syntax in your markdown:

?[What is the answer to Life, the Universe and Everything?]
-[ ] There is no answer to that!
-[ ] Sleep and eat
-[x] Easy, this is 42
-[ ] Peace & Love

The snippet above is interpreted by the platform as a Quiz.

  • ?[What is the answer to Life, the Universe and Everything?] is the first line of your quiz and allow you to ask a question to the user.
  • -[ ] There is no answer to that! is one of the possible answers but it's invalid (no x inside the []).
  • -[x] Easy, this is 42 is a correct answer (x inside []),

This renders as:

What is the answer to Life, the Universe and Everything?

You can learn more about quizzes here and more about the answer to life here.

Test your playground

Once you have made all your local modifications, push them and test your playground.

Create your playground on Tech.io
This playground was created on Tech.io, our hands-on, knowledge-sharing platform for developers.
Go to tech.io
codingame x discord
Join the CodinGame community on Discord to chat about puzzle contributions, challenges, streams, blog articles - all that good stuff!
JOIN US ON DISCORD
Online Participants