Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
This challenge involves creating or parsing pictures using text characters as the paint. Typically this uses only 95 printable (from a total of 128) characters defined by the ASCII Standard from 1963.
2
votes
Track an object in 2d space
C (gcc), 352 323 bytes
Golfed down 29 bytes thanks to ceilingcat.
#define G(x,a)x+=a=x<2|x>m-3?-a:a
#define A(p)atoi(v[p])
m,r,c,x,y,s,a,b;main(q,v)int**v;{m=A(1)+2;int f[r=m*m];for(x=A(2)+m/2;r--;f[ …
0
votes
Make me an Easter egg!
Haskell, 70 63 bytes
7 bytes down with great help from Laikoni
(<$>" __\n /~~\\\n/~~~~\\\n|~~~~|\n\\____/").(?)
d?'~'=d
d?c=c
Try it online!
The function f takes a character to paint the egg w …
2
votes
Write a domino effect
Haskell, 51 bytes
f a b c=("\\|"!!c<$[1..b-c])++("|/"!!c<$[b-c..a-1])
a = number of dominoes, b = 1-based index of the touched one, c = direction (0 is left and 1 is right).
Try it online!
2
votes
Codegolf Rainbow : Draw in Black-and-White
Haskell, 106 113 bytes
I can't yet comment other posts (namely this) so I have to post the solution as a separate answer.
Golfed away 7 bytes by ovs
p x=reverse x++x!!0:x
u m|n<-m+div(m-1)7=[(' ' …