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

#Cubix , 5 (削除) 6 (削除ここまで) bytes

Cubix , 5 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving.

!I\@O

This ends up expanded out to the cube

 !
I \ @ O
 .

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputs the numeric value of top of stack.
!, skip the next command (@) if top of stack true. This will jump the \ redirect if 1
\, redirects the instruction pointer to the @ exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

#Cubix , 5 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving.

!I\@O

This ends up expanded out to the cube

 !
I \ @ O
 .

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputs the numeric value of top of stack.
!, skip the next command (@) if top of stack true. This will jump the \ redirect if 1
\, redirects the instruction pointer to the @ exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

Cubix , 5 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving.

!I\@O

This ends up expanded out to the cube

 !
I \ @ O
 .

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputs the numeric value of top of stack.
!, skip the next command (@) if top of stack true. This will jump the \ redirect if 1
\, redirects the instruction pointer to the @ exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

update link
Source Link
ETHproductions
  • 50.3k
  • 6
  • 96
  • 241

#Cubix, 5 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Online interpreter Thanks to @ETHproductions for the saving.

!I\@O

This ends up expanded out to the cube

 !
I \ @ O
 .

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputs the numeric value of top of stack.
!, skip the next command (@) if top of stack true. This will jump the \ redirect if 1
\, redirects the instruction pointer to the @ exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

#Cubix, 5 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving.

!I\@O

This ends up expanded out to the cube

 !
I \ @ O
 .

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputs the numeric value of top of stack.
!, skip the next command (@) if top of stack true. This will jump the \ redirect if 1
\, redirects the instruction pointer to the @ exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

#Cubix, 5 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving.

!I\@O

This ends up expanded out to the cube

 !
I \ @ O
 .

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputs the numeric value of top of stack.
!, skip the next command (@) if top of stack true. This will jump the \ redirect if 1
\, redirects the instruction pointer to the @ exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

added 40 characters in body
Source Link
MickyT
  • 12.3k
  • 2
  • 27
  • 49

#Cubix, 65 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving.

!IO?@^I\@O

This ends up expanded out to the cube

 !
I O ?\ @ O
 ^.

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputoutputs the numbericnumeric value of the top of the stack (not removed).
?!, turn rightskip the next command (goes to bottom face) if 1 otherwise carry on.
@, exit program.
^, instruction pointer direction up) if top of stack true. Next command is This will jump the O\ again.redirect if 1
!\, skipredirects the next commandinstruction pointer to the (@) if top of stack true exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

#Cubix, 6 bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter

!IO?@^

This ends up expanded out to the cube

 !
I O ? @
 ^

This starts with the I command. Input an integer onto the stack.
O, output the numberic value of the top of the stack (not removed).
?, turn right (goes to bottom face) if 1 otherwise carry on.
@, exit program.
^, instruction pointer direction up. Next command is the O again.
!, skip the next command (@) if top of stack true.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

#Cubix, 5 (削除) 6 (削除ここまで) bytes

Cubix is @ETHproductions new 2 dimensional language where the commands are wrapped around the faces of a cube. Online interpreter Thanks to @ETHproductions for the saving.

!I\@O

This ends up expanded out to the cube

 !
I \ @ O
 .

This starts with the I command. Input an integer onto the stack.
\, redirects the instruction pointer down over the no op.
O, outputs the numeric value of top of stack.
!, skip the next command (@) if top of stack true. This will jump the \ redirect if 1
\, redirects the instruction pointer to the @ exit program.

This takes advantage of the fact the stack isn't popped by the O ? ! commands.

added link to interpreter
Source Link
ETHproductions
  • 50.3k
  • 6
  • 96
  • 241
Loading
the language itself is 2D
Source Link
Downgoat
  • 29.2k
  • 6
  • 85
  • 157
Loading
Source Link
MickyT
  • 12.3k
  • 2
  • 27
  • 49
Loading

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