karel-the-robot

Unofficial port of Karel the Robot to Python


Keywords
karel, python
Install
pip install karel-the-robot==1.1.1

Documentation

Please click here for documentation!

Alternatively, the raw HTML file can be found in /karel_the_robot/docs/karel_the_robot-doc.html.

Installing and Importing

Karel the Robot is now on PyPi!!!

To install, run:

pip install karel_the_robot

Some IDEs (such as PyCharm) might be able to automatically run this command if you type the import sequence.

Additionally, when using repl.it, you may have to import manually. To do so, follow these steps within your repl:

  • Click the "Packages" tab
  • Search for and select "karel-the-robot" (dashes instead of underscores)
  • Press the plus (+) symbol by the package name

Once installed, the recommended way to import is:

from karel_the_robot import World, Robot

Of course, there are numerous other ways to import.

All credit to the concept and ideas belong to the original Karel team (made in Java). This is a PORT, not an original creation by any means.