Piet programming (python programming language )

  • Context: Python 
  • Thread starter Thread starter Steven Ellet
  • Start date Start date
  • Tags Tags
    Language Programming
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
18 replies · 5K views
Steven Ellet
Messages
85
Reaction score
3
Where or how can I get Piet programming to to work on windows 10 I don't care how, only that I can program in Piet offline and NOT a trial. I have gone around the block and come so close to getting it, and then, something doesn't add up. The closest I have come to getting it to work is here: http://pastebin.com/zxc9V3UX
I used Microsoft Visual Studio Version Selector and https://www.python.org/downloads/ and I'm still stuck.
Error occurs on line 59: filename = raw_input()
Here is one example of Piet: http://www.rapapaing.com/blog/?page_id=6
Piet Programming language Tutorial:
 
Physics news on Phys.org
I typed "piet interpreter" into google, and the first hit has a win32 download.

http://www.bertnase.de/npiet/

Or did i misunderstand your question?

P.S. I never heard of piet before. Damn that's weird! Cool!
 
@pilofrogs You did not misunderstand the question. However I have already tried the obviously google searches.
 
Did you try npiet for win32? If it doesn't work for you, what's not working? What others have you tried?
 
pilofrogs said:
Did you try npiet for win32? If it doesn't work for you, what's not working? What others have you tried?
I have tried over a dozen with no luck. With "npiet for win32", as with many, I do not have any way to handle the file types:
FOO
OUT
file
shell script
in file
c source
Y file
all of these I can not handle and even if I could how would they interact with each other?
PS all of these came from " npiet for win32"
 
Hmm... those don't sound like file types that npiet would want. It wants image files, like png or gif. Where does your list of file types come from? Are you running npiet from the command line? If not, please try it that way. Did you try the debug option?
 
pilofrogs said:
Hmm... those don't sound like file types that npiet would want. It wants image files, like png or gif. Where does your list of file types come from? Are you running npiet from the command line? If not, please try it that way. Did you try the debug option?
I download the file and opened it and looked at file exporter and that was some of what I found. In addition, NO executable files.
 
pilofrogs said:
I think you downloaded the wrong thing. I just downloaded http://www.bertnase.de/npiet/npiet-1.3a-win32.zip and it contains npiet.exe among others.
It seems I had the wrong thing so i dowloaded the right one, but when when run it (from windows explorer and cmd) all that happens is a flicker and then nothing
cmd.png
 
What about npiet.exe? Same thing?
 
pilofrogs said:
What about npiet.exe? Same thing?
there is also a npiet-start.bat but it has the same output
Screenshot - 9_24_2015 , 11_43_59.png
Screenshot - 9_24_2015 , 11_44_57.png
Screenshot - 9_24_2015 , 11_45_45.png
 
MrAnchovy said:
Why are you running npiet-foogol: do you have a foogol program you want to convert?

To run one of the examples type
Code:
npiet examples/loop.gif

npiet examples/loop.gif just outputs
10
9
8
7
6
5
4
3
2
1
 
MrAnchovy said:
That's the output of the program encoded in that image, what did you expect to see?
Perhaps you do not understand what I want. the following link will give you the option to download "Piet Mondrian Composer" which is a trial, otherwise it or a similar program is what I want.
http://piet-mondrian.en.softonic.com/
 
Steven Ellet said:
Perhaps you do not understand what I want. the following link will give you the option to download "Piet Mondrian Composer" which is a trial, otherwise it or a similar program is what I want.
http://piet-mondrian.en.softonic.com/
I don't think you understand what that program does: it is nothing to do with the Piet programming language. You do realize that that language is just an elaborate joke?
 
I think of it as a challenge