Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Answer

Commonmark migration
Source Link

#Piet , 16 bytes

Piet , 16 bytes

5bpiaibpikibptai

Online interpreter available here.

##Explanation

Explanation

To run, paste the code above in the text box on the right side of the linked page. Below is a graphical representation of this code with codel size 31. The grid is for readability and may interfere with traditional Piet interpreters.
The code runs linearly from left to right, going along the top of the image until the first green block, where program flow moves to the middle row of codels. The white lone white codel is necessary for program flow. It could be replaced with a codel of any color other than green or dark blue, but I have chosen white for readability.

Code Visualization

Instruction Δ Hue Δ Lightness Stack
----------- ----- ----------- -----
In (Number) 4 2 m
In (Number) 4 2 n, m
Multiply 1 2 m*n
Out (Number) 5 1 [Empty]
[Exit] [N/A] [N/A] [Empty]

If you think that text is not the best way to represent a Piet program or have an issue with the byte size of Piet programs in general, please let your opinion be known in the discussion on meta.

#Piet , 16 bytes

5bpiaibpikibptai

Online interpreter available here.

##Explanation

To run, paste the code above in the text box on the right side of the linked page. Below is a graphical representation of this code with codel size 31. The grid is for readability and may interfere with traditional Piet interpreters.
The code runs linearly from left to right, going along the top of the image until the first green block, where program flow moves to the middle row of codels. The white lone white codel is necessary for program flow. It could be replaced with a codel of any color other than green or dark blue, but I have chosen white for readability.

Code Visualization

Instruction Δ Hue Δ Lightness Stack
----------- ----- ----------- -----
In (Number) 4 2 m
In (Number) 4 2 n, m
Multiply 1 2 m*n
Out (Number) 5 1 [Empty]
[Exit] [N/A] [N/A] [Empty]

If you think that text is not the best way to represent a Piet program or have an issue with the byte size of Piet programs in general, please let your opinion be known in the discussion on meta.

Piet , 16 bytes

5bpiaibpikibptai

Online interpreter available here.

Explanation

To run, paste the code above in the text box on the right side of the linked page. Below is a graphical representation of this code with codel size 31. The grid is for readability and may interfere with traditional Piet interpreters.
The code runs linearly from left to right, going along the top of the image until the first green block, where program flow moves to the middle row of codels. The white lone white codel is necessary for program flow. It could be replaced with a codel of any color other than green or dark blue, but I have chosen white for readability.

Code Visualization

Instruction Δ Hue Δ Lightness Stack
----------- ----- ----------- -----
In (Number) 4 2 m
In (Number) 4 2 n, m
Multiply 1 2 m*n
Out (Number) 5 1 [Empty]
[Exit] [N/A] [N/A] [Empty]

If you think that text is not the best way to represent a Piet program or have an issue with the byte size of Piet programs in general, please let your opinion be known in the discussion on meta.

added 13 characters in body
Source Link
Mike Bufardeci
  • 1.7k
  • 10
  • 21

#Piet, 16 bytes

5bpiaibpikibptai

Online interpreter available here.

##Explanation

To run, paste the code above in the text box on the right side of the linked page. Below is a graphical representation of this code with codel size 31. The grid is for readability and may interfere with traditional Piet interpreters.
The code runs linearly from left to right, going along the top of the image until the first green block, where program flow moves to the middle row of codels. The white lone white codel is necessary for program flow. It could be replaced with a codel of any color other than green or dark blue, but I have chosen white for readability.

Code Visualization

Instruction Δ Hue Δ Lightness Stack
----------- ----- ----------- -----
In (Number) 4 2 m
In (Number) 4 2 n, m
Multiply 1 2 m*n
Out (Number) 5 1 [Empty]
[Exit] [N/A] [N/A] [Empty]

If you think that text is not the best way to represent a Piet program or have an issue with the byte size of Piet programs in general, please let your opinion be known in the discussion on meta.

#Piet, 16 bytes

5bpiaibpikibptai

Online interpreter available here.

##Explanation

To run, paste the code above in the text box on the right side of the linked page. Below is a graphical representation of this code with codel size 31. The grid is for readability and may interfere with traditional Piet interpreters.
The code runs linearly from left to right, going along the top of the image until the first green block, where program flow moves to the middle row of codels. The white lone white codel is necessary for program flow. It could be replaced with a codel of any color other than green, but I have chosen white for readability.

Code Visualization

Instruction Δ Hue Δ Lightness Stack
----------- ----- ----------- -----
In (Number) 4 2 m
In (Number) 4 2 n, m
Multiply 1 2 m*n
Out (Number) 5 1 [Empty]
[Exit] [N/A] [N/A] [Empty]

If you think that text is not the best way to represent a Piet program or have an issue with the byte size of Piet programs in general, please let your opinion be known in the discussion on meta.

#Piet, 16 bytes

5bpiaibpikibptai

Online interpreter available here.

##Explanation

To run, paste the code above in the text box on the right side of the linked page. Below is a graphical representation of this code with codel size 31. The grid is for readability and may interfere with traditional Piet interpreters.
The code runs linearly from left to right, going along the top of the image until the first green block, where program flow moves to the middle row of codels. The white lone white codel is necessary for program flow. It could be replaced with a codel of any color other than green or dark blue, but I have chosen white for readability.

Code Visualization

Instruction Δ Hue Δ Lightness Stack
----------- ----- ----------- -----
In (Number) 4 2 m
In (Number) 4 2 n, m
Multiply 1 2 m*n
Out (Number) 5 1 [Empty]
[Exit] [N/A] [N/A] [Empty]

If you think that text is not the best way to represent a Piet program or have an issue with the byte size of Piet programs in general, please let your opinion be known in the discussion on meta.

Source Link
Mike Bufardeci
  • 1.7k
  • 10
  • 21

#Piet, 16 bytes

5bpiaibpikibptai

Online interpreter available here.

##Explanation

To run, paste the code above in the text box on the right side of the linked page. Below is a graphical representation of this code with codel size 31. The grid is for readability and may interfere with traditional Piet interpreters.
The code runs linearly from left to right, going along the top of the image until the first green block, where program flow moves to the middle row of codels. The white lone white codel is necessary for program flow. It could be replaced with a codel of any color other than green, but I have chosen white for readability.

Code Visualization

Instruction Δ Hue Δ Lightness Stack
----------- ----- ----------- -----
In (Number) 4 2 m
In (Number) 4 2 n, m
Multiply 1 2 m*n
Out (Number) 5 1 [Empty]
[Exit] [N/A] [N/A] [Empty]

If you think that text is not the best way to represent a Piet program or have an issue with the byte size of Piet programs in general, please let your opinion be known in the discussion on meta.

AltStyle によって変換されたページ (->オリジナル) /