LOGO-py

A simple pygame implementation of the LOGO programming language.

Latest Version Notes

  • Fixed a bug where penup/pendown would not work properly.
  • Added functionality for setpensize and setpencolor.
  • Added functionality for setx, sety, and setxy.

Still Broken

  • For some reason, commands are only valid when they are padded with spaces.
    • i.e. repeat 2 [fd 10 ] is valid but repeat 2 [fd 10] is not.
    • probably a noob regex mistake.
  • Nested repeat commands are not supported due to regex limitations.
  • forever loops lock everything up because it currently tries to finish drawing everything before showing it on-screen.

Usage

$ python3 src/logo/logo.py <filepath>

For example, passing demo.logo will open a pygame window and draw a house:

$ python3 src/logo/logo.py demo.logo

demo.logo

GitHub

View Github