Piet programming (python programming language )

In summary, where or how can I get Piet programming to to work on windows 10? There is no way to handle the file types npiet wants, it just outputs the output of the program encoded in an image.
  • #1
Steven Ellet
85
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 Langauge Tutorial:
 
Technology news on Phys.org
  • #2
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!
 
  • #3
@pilofrogs You did not misunderstand the question. However I have already tried the obviously google searches.
 
  • #4
Did you try npiet for win32? If it doesn't work for you, what's not working? What others have you tried?
 
  • #5
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"
 
  • #6
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?
 
  • #7
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.
 
  • #9
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
 
  • #10
What about npiet.exe? Same thing?
 
  • #11
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
 
  • #12
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
 
  • #13
Type what I said at that prompt.
 
  • #14
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
 
  • #15
That's the output of the program encoded in that image, what did you expect to see?
 
  • #16
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/
 
  • #17
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?
 
  • #18
I think of it as a challenge
 
  • #19
If you think you are up to the challenge you should start here: http://www.dangermouse.net/esoteric/piet/tools.html. The easiest implementation to get up and running is surely this one which runs in a browser: http://www.rapapaing.com/blog/?page_id=6.
 

Related to Piet programming (python programming language )

1. What is Piet programming in Python?

Piet programming in Python is a visual programming language created by David Morgan-Mar. It uses the concepts of color and shape to represent different operations and instructions, making it a unique and creative way to write code.

2. How does Piet programming work?

Piet programming works by assigning different colors and shapes to specific operations and instructions. The program is then created by arranging these colored blocks in a specific pattern, which is then interpreted by the Piet interpreter to execute the desired code.

3. What are the advantages of using Piet programming?

The main advantage of Piet programming is its visual nature, which can make it easier for some people to understand and write code. It also allows for more creative and artistic expression in coding, making it a fun and unique approach to programming. Additionally, Piet programs can be easily translated into other languages, making it accessible to a wider audience.

4. Are there any limitations to using Piet programming?

One limitation of Piet programming is that it can be more difficult to debug compared to traditional text-based programming languages. It also has a steeper learning curve, as it requires understanding the color and shape coding system. Additionally, not all operations and instructions can be represented visually, so some tasks may still require traditional programming methods.

5. How can I get started with Piet programming in Python?

To get started with Piet programming in Python, you can download the Piet interpreter and start experimenting with creating simple programs. There are also online resources and tutorials available to help you learn the basics and improve your skills. Additionally, joining online communities or attending workshops can also be helpful in learning and mastering Piet programming.

Similar threads

  • Programming and Computer Science
Replies
8
Views
898
  • Programming and Computer Science
Replies
2
Views
870
  • Programming and Computer Science
Replies
15
Views
2K
  • Programming and Computer Science
Replies
5
Views
2K
  • Programming and Computer Science
Replies
2
Views
2K
  • Programming and Computer Science
Replies
8
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
3
Views
2K
  • Programming and Computer Science
Replies
2
Views
2K
  • Programming and Computer Science
Replies
9
Views
13K
Back
Top