mirror of
https://github.com/mfocko/blog.git
synced 2024-11-14 01:59:42 +01:00
Matej Focko
a868efaee6
* Switch the archiving from the ‹zip› to ‹tar.gz› and ‹tar.bz2› * Adjust the static files to have consistent paths Signed-off-by: Matej Focko <me@mfocko.xyz>
28 lines
477 B
Python
28 lines
477 B
Python
from karel_tk import Karel
|
|
|
|
import sys
|
|
|
|
|
|
class SuperKarel(Karel):
|
|
# you can define your own helper functions on Karel here, if you wish to
|
|
|
|
def run(self):
|
|
# TODO
|
|
pass
|
|
|
|
|
|
def main():
|
|
if len(sys.argv) != 2:
|
|
print("Please provide a path to the world as an argument.")
|
|
return
|
|
|
|
k = SuperKarel(sys.argv[1], scale=3, font="Iosevka\\ Term")
|
|
k.set_step_delay(500)
|
|
|
|
k.run()
|
|
|
|
k.turn_off()
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|