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.
7
votes
Code Golf: Your own pet ASCII snake
VBA, 60 59 49 Bytes
For l=1To 30:?Spc(30+i)"+":i=i+Sgn(Rnd()-.5):Next
Paste it in the Immediate window and hit enter. (Make sure explicit declaration is turned off!)
Far more likely to move than …
0
votes
Factory workers
VBA, 144 bytes
Sub f(i)
Dim w(9) As Long
For x = 0 To 9
s = "|"
For y = 0 To 9
s = s & w(y)
If i * Rnd() < 1 Then w(y) = 1
Next
Debug.Print s; "|"
Next
End Sub
Indented for easier reading:
Sub f …
2
votes
Make an Emergency Corridor
Excel, 28 bytes
=REPT(2,A1+1)-10^MAX(A1-1,1)
Uses 2 for cars, and 1 for Corridor
Makes a list of 2s n+1 long, then subtracts the larger of 10^(n-1) and 10:
n=1 : 22 - MAX(1,10) = 12
n=2 : 22 …
2
votes
It took me a lot of time to make this, pls like. (YouTube Comments #1)
VBA, 54 51 Bytes
(-3 bytes now that leading & trailing 0-character lines are confirmed as permitted)
x=Len([A1]):For i=-x To x:?Left([A1],x-abs(i)):Next
Just a simple loop from -Length to Length …
4
votes
Solve a 2xN Maze
Excel, 38 bytes
=AND(ISERROR(FIND({12,3,21},A1+2*A2)))
Input is 2 strings (1 for each row of the maze), in cells A1 and A2, with 1 for a Wall, and 0 for a space.
First, it adds the first row, and twi …