Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

75%
+4 −0
Challenges Create an Alphabet Diamond

Canvas, 10 7 6 bytes Z[]/┼┼ Try it here! Creates the top portion, centers it, and mirrors it. -3 bytes from dzaima's hint. -1, found the 6 byter! Explanation Z[]/++ Z push the al...

posted 3y ago by Razetime‭  ·  edited 3y ago by Razetime‭

Answer
#3: Post edited by user avatar Razetime‭ · 2021-02-11T14:56:11Z (about 3 years ago)
  • # [Canvas](https://github.com/dzaima/Canvas), <SUP><del>10</del></SUP> 7 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
  • Z[│]r──
  • [Try it here!](https://dzaima.github.io/Canvas/?u=JXVGRjNBJXVGRjNCJXUyNTAyJXVGRjNEJXVGRjUyJXUyNTAwJXUyNTAw,v=8)
  • Creates the top portion, centers it, and mirrors it.
  • -3 bytes from dzaima's hint.
  • ## Explanation
  • ```
  • Z[|]r--
  • Z push the alphabet
  • [ ] map each prefix to
  • | itself palindromized
  • r center it
  • -- mirror downwards with 1 line overlap, without reflecting letters
  • # [Canvas](https://github.com/dzaima/Canvas), <SUP><del>10 7</del></SUP> 6 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
  • Z[]/┼┼
  • [Try it here!](https://dzaima.github.io/Canvas/?u=JXVGRjNBJXVGRjNCJXVGRjNEJXVGRjBGJXUyNTNDJXUyNTND,v=8)
  • Creates the top portion, centers it, and mirrors it.
  • -3 bytes from dzaima's hint.
  • -1, found the 6 byter!
  • ## Explanation
  • ```
  • Z[]/++
  • Z push the alphabet
  • [] get all prefixes
  • / diagonalize by padding each line with one less than the previous
  • ++ Quad palindromize, without reflecting letters
#2: Post edited by user avatar Razetime‭ · 2021-02-10T15:07:52Z (about 3 years ago)
  • # [Canvas](https://github.com/dzaima/Canvas), 10 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
  • Z[│]r─^∙V╋
  • [Try it here!](https://dzaima.github.io/Canvas/?u=JXVGRjNBJXVGRjNCJXUyNTAyJXVGRjNEJXVGRjUyJXUyNTAwJTVFJXUyMjE5ViV1MjU0Qg__,v=8)
  • Creates the top portion, centers it, and mirrors it.
  • ## Explanation
  • ```
  • Z[|]r-^.V+
  • Z push the alphabet
  • [ ] map each prefix to
  • | itself palindromized
  • r center it
  • - mirror downwards with 1 line overlap
  • ^.V+ replace '^' with 'V'
  • # [Canvas](https://github.com/dzaima/Canvas), <SUP><del>10</del></SUP> 7 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
  • Z[│]r─
  • [Try it here!](https://dzaima.github.io/Canvas/?u=JXVGRjNBJXVGRjNCJXUyNTAyJXVGRjNEJXVGRjUyJXUyNTAwJXUyNTAw,v=8)
  • Creates the top portion, centers it, and mirrors it.
  • -3 bytes from dzaima's hint.
  • ## Explanation
  • ```
  • Z[|]r--
  • Z push the alphabet
  • [ ] map each prefix to
  • | itself palindromized
  • r center it
  • -- mirror downwards with 1 line overlap, without reflecting letters
#1: Initial revision by user avatar Razetime‭ · 2021-02-09T09:31:28Z (about 3 years ago)
# [Canvas](https://github.com/dzaima/Canvas), 10 [bytes](https://github.com/dzaima/Canvas/blob/master/files/chartable.md)
    Z[│]r─^∙V╋

[Try it here!](https://dzaima.github.io/Canvas/?u=JXVGRjNBJXVGRjNCJXUyNTAyJXVGRjNEJXVGRjUyJXUyNTAwJTVFJXUyMjE5ViV1MjU0Qg__,v=8)

Creates the top portion, centers it, and mirrors it.

## Explanation
```
Z[|]r-^.V+
Z          push the alphabet
 [ ]       map each prefix to
  |        itself palindromized
    r      center it
     -     mirror downwards with 1 line overlap
      ^.V+ replace '^' with 'V'