Make the Error Game

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.


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 will be posted below. The first to ten points wins!


Did it:

1 Like

This works lol:


Dang, never would have thought of that one! You can create your own challenge now.

(By the way @NateDhaliwal, you can combine lines like so: a = 1; b = 2, I wouldn’t recommend it though)


I’d say this doesn’t count because of the semicolon.

Or the Pythonic way:

a, b = 1, 2

Well, JS is my forte, my challenge is to get Maximum call stack size exceededin JavaScript or NodeJS using an ES6 IIFE.


This definitely wasn’t the best way to do it but :shrug:

function e() {

1 Like

It works, but it’s not ES6 or an IIFE, although that doesn’t make it much more difficult.

1 Like

I don’t think this is the awnser, but:

function e() {
  var v = e();


That’s basically the same as Qwerty’s.

(function func() {
1 Like

Yeah, that’s a good point. Now that I think about it you can probably cheese most challenges using semicolons.


lol mine was very similar: ()[0] just using a tuple


[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]][1] someone should do this but with a couple thousand characters

1 Like

Wuts da next challenge?

So, that’s just arrow functions, right?

const e = () => e();
1 Like

Not an ES6 function, but getting closer.


Yep, that’s valid, you win the point! :confetti_ball: (I think that means you can create the next challenge too.)


Oookay, my challenge is… Get a KeyboardInterrupt in Python with just code, so you can’t manually do it. Not too hard

btw @bobastley probably should update OP, shall I do it?

1 Like

Too easy :smirk:

raise KeyboardInterrupt("lolololol")