7
[Small talk] I drew a diamond sword
I drew a diamond sword in python.
I have to admit that my code level is terrible, after all, it took me over 600 lines of code to complete it.😥
Here is the code link: https://github.com/FlashDragons/Python/blob/main/turtle_painting/Minecraft/diamond_sword1.py Will you not laugh at me?🥲
I have to admit that my code level is terrible, after all, it took me over 600 lines of code to complete it.😥
Here is the code link: https://github.com/FlashDragons/Python/blob/main/turtle_painting/Minecraft/diamond_sword1.py Will you not laugh at me?🥲
Create an account or sign in to comment.
5
Awesome! 😎🤗
Ooh cool!
Insufficiently knowledge of python (waht little I can see of the code puts me in mind of Logo's turtle graphics), but 600 lines seems high even if (as in the visible fragment) it takes 8 or 9 lines of code per connected color group…
Then again, it works… which is a strong point in favor of any program….
Then again, it works… which is a strong point in favor of any program….
The most efficient code for this is a matrix reader and a predefined dictionary or hashtable of the pixels, I think. But since the sword is consistently diagonal, maybe only read numbers that are past the hilt mid points.
me, who can't even do "hello world"