Skip to content

Commit 6e5c015

Browse files
committed
Add information on recipe matching
1 parent 21a8d30 commit 6e5c015

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

recipes/Template Matching.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
Fully Padded Example (3x3 recipe)
2+
==================================================
3+
4+
```
5+
0 1 2
6+
0 [" ", " ", " "]
7+
1 [" ", "C", " "]
8+
2 [" ", " ", " "]
9+
```
10+
11+
1. Dimensions without air: 1x1
12+
2. Trim whitespace (1x1)
13+
3. Padding: +1 on all sides
14+
4. Match to template with padding
15+
16+
No Whitespace Example (1x1 recipe)
17+
==================================================
18+
19+
```
20+
0
21+
0 ["I"]
22+
```
23+
24+
1. Dimensions without air: 1x1
25+
2. Trim whitespace (1x1)
26+
3. Padding: None
27+
4. Direct match
28+
29+
Whitespace Example (4x4 recipe)
30+
==================================================
31+
32+
```
33+
0 1 2 3
34+
0 [" ", " ", " ", " "]
35+
1 [" ", "C", " ", " "]
36+
2 [" ", " ", " ", " "]
37+
3 [" ", " ", " ", "X"]
38+
```
39+
40+
1. Dimensions without air: 3x1x3 (min 1,0,1 max 3,0,3)
41+
2. Trim whitespace (3x3)
42+
3. Padding:
43+
- North 1
44+
- West 1
45+
46+
Dimensions with air: 4x1x4

0 commit comments

Comments
 (0)