Skip to content

ethanavatar/logo-py

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A simple pygame implementation of the LOGO programming language.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages