The 2024 Developer Survey results are live! See the results

# Tag Info

## Hot answers tagged tiling

### Concentric rings on a snub square tiling

Ruby, 26 bytes ->n{~-n*12-496/4**n%4+1/n} Try it online! Revised version adding 1/n and subtracting ...
• 26.4k

### Is it a checkered tiling?

JavaScript, 106 101 bytes s=>[...s,'!',s].reverse().join.match((.)((?!\\1).)[^!]{\${s.indexOf -1}}((?!\\1|\\2).)(\\2|\\3)) Try it online! (Returns ...
• 10.5k

### Piet (Mondrian)'s Puzzle

Piet, 9625 (It finally works!) The people demanded it, so here it is. This is an extremely naive solution (essentially the same as the loose upper bounds on the OEIS page): it divides each square ...
• 1,721

### How should I tile my kitchen?

APL (Dyalog Unicode), 193 bytes ...
• 77.8k

### Triangular domino tiling of an almost regular hexagon

APL (Dyalog Classic), 14 bytes ×/1+1÷1+∘,1⊥¨⍳ Try it online! Uses 0 indexing with ⎕IO←0. Explanation: ...
• 47.3k

### Tiling a staircase with staircases

JavaScript (ES10),  250 ... 228  227 bytes ...
• 194k

### Is it a checkered tiling?

Python 3, 100 99 88 bytes lambda a:2in[len({i,l}^{k,j})for x,y in zip(a,a[1:])for i,j,k,l in zip(x,x[1:],y,y[1:])] Try it online! Return ...
• 2,688

### Test a polyomino against Conway criterion

Python 3.8 (pre-release), 371 ... 338 336 bytes Takes as input a list of complex numbers, denoting the boundary coordinates in counterclockwise order. -9 bytes thanks to @ovs -2 bytes thanks to @...
• 22.7k

### Draw the GKMS aperiodic tile

JavaScript (ES6), 150 bytes -10 thanks to @Neil Generates a SVG. ...
• 194k

### Is it a checkered tiling?

Python 2, 167 153 143 bytes ...
• 16.3k

### Concentric rings on a snub square tiling

JavaScript (ES6), 23 bytes Based on Level River St's answer. n=>[1,5,13,7][--n]^n*12 Try it online! How? We compute $(n-1)\times12$ and adjust the first 4 ...
• 194k

### Concentric rings on a snub square tiling

05AB1E, 9 bytes <©12*3®cα Try it online! or try a test suite. ...
• 15.8k

### Is this a robbery?

Jelly,  10  8 bytes ḟ⁶OIA7fỌ A full program which prints an empty string (falsey) if all is well or a bell character if not (a bell character is also truthy). ...
• 108k

### Is this a robbery?

Brachylog, 17 12 10 bytes -5 bytes by not distinguishing between Employees and Jewels -2 bytes using addition, not multiplication, so I get 7 for \a for free Empty tiles are ...
• 11.3k

### Is it a checkered tiling?

JavaScript, 98 bytes -3 bytes by Arnauld ...
• 35k

### Finite tilings in one dimension

JavaScript (ES6), 74 73 70 bytes Takes input as an array of 32-bit integers. Returns a boolean. ...
• 194k

### Triangular domino tiling of an almost regular hexagon

Perl 6, 38 30 bytes {[*] map 1+1/(*+1),[X+] ^<<@_} Try it online! Based on the formula given in the question Explanation: ...
• 47.3k
Accepted

### Concentric rings on a snub square tiling

Jelly, 8 bytes ’3cạ×ʋ12 Try it online! How? ...
• 108k

### Number of tilings on a triangular board with triangular tiles

JavaScript (Node.js), N =  22 25  32 in ~2 seconds A recursive search using bit masks and a cache to keep track of patterns whose result is already known. It doesn't make much sense to try go further ...
• 194k

### Can this polyomino tile the toroidal grid?

Python 2, 300 265 163 bytes -35 bytes after suggestions from @xnor, @ovs, and largely @user202729 (removing evenly divisible check allowed for a one-liner + lambda) -102 bytes following encouragement +...
• 16.3k

### Maximal saturated domino covering of a rectangle

Sagemath, 60 bytes lambda m,n:m*n-len(graphs.GridGraph([m,n]).dominating_set()) Try it online! From Saturated Domino Coverings by Buchanan et al: Corollary 6.3: ...
• 14.8k

### Is it a checkered tiling?

Ruby, 108 bytes ->a{w,i,j,q=0;a.map{|x|w,i=(j=x.zip(j||x).map{|y,c|[y==i ?w:w^=1,i=y,q||=((c[0]==w)^(c[1]==i))&&j]})[0]};!q} Try it online!
• 22.2k

### Integers, Assemble!

Python 2, 210 200 bytes Edit: Works now! Fills from top to bottom, left to right, starting with the largest numbers. Then, transpose and do it again. Then transpose and print. I had to pad with spaces ...
• 23.4k

### Concentric rings on a snub square tiling

Python, 31 bytes lambda n:n*12-11-(n>4or 5%-n%5) Try it online!
• 146k

### Number of tilings on a triangular board with triangular tiles

Rust, $n \le 44$ in 42 seconds Build with rustc -O. Uses about 800 MiB of memory for $n = 38$, and $39 \le n \le 44$ are trivial. $n = 45$ will almost ...
• 39.7k

### Integers, Assemble!

JavaScript, 284 259 245 241 240 223 209 205 bytes ...
• 658

### Generate valid Fibonacci tilings

APL (Dyalog Unicode), 43 bytes (1+∘÷⍣=1){'LS'[∪2</⍺|(⍺×(⍳÷⊢)2*⍵)∘.+⍳⍵]}1∘+ Try it online! This uses the alternative formulation (actually the first one) shown ...
• 77.8k

### Simplest Tiling of the Floor

APL(Dyalog Unicode), 53 37 36 bytes SBCS {⌊/×/¨⍸(~6∊' a'∧/⍤⍳⍵⊢⌸⍥,⍨|)⍤0 2⍨⍳⍴⍵} Try it on APLgolf! Instead of partitioning, this one groups the characters in the ...
• 77.8k