Skip to main content
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
Results tagged with
Search options answers only not deleted user 84

For challenges about dominoes, the game pieces.

14 votes

Write a domino effect

Ruby, 38 (46) characters e=->n,k,r{k-=r;'\|'[r]*k+'|/'[r]*n-=k} This function takes the direction as an integer (1 for right, 0 for left). A function that takes a string is 8 characters longer: …
Ventero's user avatar
  • 10.1k