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

Wumpus, 22 bytes

)"*"9&=l(&o
}@?!-)9=N}

Try it online!

###Explanation:

Explanation:

) increment the counter
 "*" push an asterisk to the stack
 9&= Duplicate it 9 times (leaving 10 copies)
 l(&o Print length of stack-1 times
 Reflect off the end of the line and go South-West
 } Turn right by 60 degrees, now going West along the second line
 N Print a newline
 = Duplicate the counter
 !-)9 Check if it is equal to 10
 @? If so, end the program
} Else turn right and go back to the start of the first line

Wumpus, 22 bytes

)"*"9&=l(&o
}@?!-)9=N}

Try it online!

###Explanation:

) increment the counter
 "*" push an asterisk to the stack
 9&= Duplicate it 9 times (leaving 10 copies)
 l(&o Print length of stack-1 times
 Reflect off the end of the line and go South-West
 } Turn right by 60 degrees, now going West along the second line
 N Print a newline
 = Duplicate the counter
 !-)9 Check if it is equal to 10
 @? If so, end the program
} Else turn right and go back to the start of the first line

Wumpus, 22 bytes

)"*"9&=l(&o
}@?!-)9=N}

Try it online!

Explanation:

) increment the counter
 "*" push an asterisk to the stack
 9&= Duplicate it 9 times (leaving 10 copies)
 l(&o Print length of stack-1 times
 Reflect off the end of the line and go South-West
 } Turn right by 60 degrees, now going West along the second line
 N Print a newline
 = Duplicate the counter
 !-)9 Check if it is equal to 10
 @? If so, end the program
} Else turn right and go back to the start of the first line
added 545 characters in body
Source Link
Jo King
  • 48.1k
  • 6
  • 130
  • 187

Wumpus, 22 bytes

)"*"9&=l(&o
}@?!-)9=N}

Try it online!

###Explanation:

) increment the counter
 "*" push an asterisk to the stack
 9&= Duplicate it 9 times (leaving 10 copies)
 l(&o Print length of stack-1 times
 Reflect off the end of the line and go South-West
 } Turn right by 60 degrees, now going West along the second line
 N Print a newline
 = Duplicate the counter
 !-)9 Check if it is equal to 10
 @? If so, end the program
} Else turn right and go back to the start of the first line

Wumpus, 22 bytes

)"*"9&=l(&o
}@?!-)9=N}

Try it online!

Wumpus, 22 bytes

)"*"9&=l(&o
}@?!-)9=N}

Try it online!

###Explanation:

) increment the counter
 "*" push an asterisk to the stack
 9&= Duplicate it 9 times (leaving 10 copies)
 l(&o Print length of stack-1 times
 Reflect off the end of the line and go South-West
 } Turn right by 60 degrees, now going West along the second line
 N Print a newline
 = Duplicate the counter
 !-)9 Check if it is equal to 10
 @? If so, end the program
} Else turn right and go back to the start of the first line
deleted 11 characters in body
Source Link
Jo King
  • 48.1k
  • 6
  • 130
  • 187

Wumpus, 2622 bytes

"*"#9&=#9&o )"*"9&=l(&o
}@?!-01#=)N9=N}
 @

Try it online! Try it online!

Wumpus, 26 bytes

"*"#9&=#9&o 
}?-01#=)N}
 @

Try it online!

Wumpus, 22 bytes

)"*"9&=l(&o
}@?!-)9=N}

Try it online!

Source Link
Jo King
  • 48.1k
  • 6
  • 130
  • 187
Loading

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