Set up the Replit Online Editor - IncrediCoders/Python1 GitHub Wiki

paul_ch1_avatar

Paul Python added this page on July 29, 2025


Replit is very easy to set up! You're going to need an internet connection to use it. On this page, I show you how to:

Set Up Your Replit Account

To create a Replit account, go to Replit.com and click the Sign up button on the upper right. It will ask you to create a Replit account, by using an existing Google, GitHub, or X account, or by entering your email and a unique username and password for the site.

Once you've logged into your account, you're going to fork the app that we set up. Replit calls a repo an app. Follow these steps:

  1. Click the app link: https://replit.com/@Incredicoders/IncrediCoders-Template.
  2. Click the blue Remix this app button below the name of the app, IncrediCoders Template.
  3. Click the blue Remix App button on the lower-right corner of the pane. It will say it's Remixing.

Welcome to your new Replit workspace! The forked (remixed) app includes the Pygame template folders for each level (with all the library modules loaded). Replit makes it easy to move between folders.

Run the Games

If you're a Windows user, we have the EXE files ready for you to download and run at Try the IncrediCoders Games.

If you're using Mac or Linux, you can run the games from Replit (or if you're a Windows user who wants to use Replit instead of Visual Studio Code or don't want to download the EXE files).

In Replit, you'll need to open the IncrediCoders Solutions app. See The Final Code below. In the IncrediCoders Solutions app, navigate to the folder for the level you would like to run, and find the file ending with "_Solution.py" (for example, ClassroomQuiz_Solution.py for Level 3). This is the file that you're going to open in the Replit Shell.

[Image of the folders and the solution file highlighted or pointed to with an arrow.]

[To change these instructions below to how you currently access the Shell: Add > Search for Shell > And then navigate to the folder/file.]

Click the Shell tab on the top of the screen, and then navigate to the folder that your solution file is in. To navigate to the folder of the level, type "cd (Level#)" without the parentheses. (For example, type cd Level3 in the Shell.) The commands are case sensitive, so "cd" is lowercase "Level3" is uppercase with no space in "Level3". We're running level 3 in this example.

It should look like this:

      image

Press Enter, and you should now see that the Shell directory changes to Level 3:

      image

You are now operating in the Level 3 folder! To run the file, type python ClassroomQuiz_Solution.py in the Shell. It's also case sensitive, so make sure the capitalization is accurate.

It looks like this:

      image

Press Enter, and you should see the game running in the VNC tab. If you do not see the VNC tab next to your Shell tab, you can create the VNC tab by clicking the "+" symbol and selecting the VNC tab in the list. It is also possible that the VNC tab might not load when you run the game. If this is the case, press the Refresh Connection button, refresh the page in your browser, OR close the VNC tab and reopen it, and then rerun the command above.

Here's an example of what the game looks like when you run it:

image

A newer known issue is if you run multiple apps/games without closing the VNC tab, then the windows overlap on top of each other in the same tab. This doesn't affect the gameplay of the top (and most recently run) application. To fix this issue, close the VNC tab and run the app again.

Congratulations! You should be able to run the game now!

The WAV Files

Currently, Replit can't run WAV and sound files. As a result, Replit will run the IncrediCoders games with those files. However, it will largely ignore that code, and it won't play any sounds. This means that the following games won't run with sound:

  • Level 4, SpaceWars: Challenge 1
  • Level 4, SpaceWars: Challenge 2
  • Level 6, Boss Battle: Challenge 1

Navigate the Folders

Replit makes it very easy to move between folders. You'll find the GitHub repo's folder structure on the left pane of the Replit interface.

The Final Code

You can browse and run the final code files here, on GitHub, in the Solutions folder. You can also find the final code in a Solutions app on Replit that you'll also need to fork/remix: https://replit.com/@Incredicoders/IncrediCoders-Solutions

  • Click the blue Remix this app button below the name of the app, IncrediCoders Solutions.
  • Click the blue Remix App button on the lower-right corner of the pane. It will say it's Remixing.

You now have access to the Solutions app on Replit, where you can view and run the final code.

IMPORTANT: Please don't cheat yourself! Finish coding the games first!

Next Steps

If you have any questions, ideas, or issues with this level, then please let us know by creating a GitHub Issue.

Otherwise, when you're done setting up, head over to our Level 1 Online Resources.

⚠️ **GitHub.com Fallback** ⚠️