Skip to main content

Timeline for Extendify the ASCII Sun

Current License: CC BY-SA 3.0

5 events
when toggle format what by license comment
May 8, 2015 at 3:30 history edited Alex A. CC BY-SA 3.0
Forgot a multiple of 2
May 8, 2015 at 1:05 comment added Alex A. @MickyT: That's fantastic. Thank you so much for noticing my mistake and proving a much better solution! I edited the answer.
May 8, 2015 at 1:04 history edited Alex A. CC BY-SA 3.0
Saved fixed solution and shortened thanks to Mickey!
May 7, 2015 at 23:44 comment added MickyT Sorry Alex, you missed the vertical rays. There is a few things that could be changed to shorten this without changing the general process. The scan doesn't really need the w=. It can also be shifted deeper into the commands. The if can be ditched if you change the way the matrix is handled in a couple of instances. Applying these I get m=matrix(" ",(w=2*(n=scan()+1)-1),w);m[row(m)-rev(col(m))==0]='/';diag(m)="\\";m[,n]='|';m[n,]="-";m[n,n]="O";m[,w]=paste0(m[,w],'\n');cat(t(m),sep=''). Further golfing possible I think.
May 7, 2015 at 22:01 history answered Alex A. CC BY-SA 3.0