Thought of a fresh, mostly original idea, for a new Replit Ask Game, I’ll call “Make the Error”!
How it works
Given a language and an error, a user must create a program that results in that error upon compiling/executing.
Rules
If you have knowledge of a programming language, you may know it’s possible to throw an error directly. However, the error has to be created through “natural” means, and cannot be thrown by the user.
If the error provided is the general name of an error, variations are allowed. If the user has specifically specified details of the error, those details need to be taken into account when answering.
All answers AND errors need to be replicable on Unix rather than DOS. (Replit/NixOS is Unix, and this is Replit Ask)
After answering, the original challenge creator needs to verify your answer by replying as confirmation, or using the “+1” (or thumbs up) on the solution post.
The first user to answer correctly (and get verified by the challenge creator) will be awarded a point, and will be able to create the next challenge! The first user to ten points wins the game!
Creating a challenge
After successfully completing a challenge and getting verified, you can create your own! Here is what you should put in your challenge,
- A programming language (must be specified, as errors are usually limited to a single language)
- A desired error message (can be general, or line for line, needs to be replicable on Replit/NixOS)
- Required modules/packages (if needed, should be Replit/NixOS compatible without root)
- Maybe some additional challenges? (Ex, should be done using one line, no strings, etc.)
When limited on lines (from the additional challenge), the solution should not require the use of semicolons, representing what two lines would require in one.
The error message should be replicable on Replit, but avoid anything that doesn’t really have to do with the code itself, like an issue with root perms preventing a module from configuring correctly.
External modules/packages should be somewhat known to the general programming community. (Ex, Python Requests would be a good choice, it is widely known across the Python community, while a random, recent package release on PyPi would not.)
Before you post a challenge, remember to come up with a solution yourself! All challenges should be possible.
Have fun!
Current Challenge
Scores
Scores will be posted below. The first to ten points wins!
Name | Points |
---|---|
@MattDESTROYER | 2 |
@QwertyQwerty88 | 1 |
@Idkwhttph | 2 |
@python660 | 2 |
@Firepup650 | 2 |
@CoderElijah | 1 |
@MiloCat | 1 |
@SnakeyKing | 1 |
@bobastley | 1 |