Skip to content

Commit 8a52c1c

Browse files
committed
181 -1b
1 parent 7d7e497 commit 8a52c1c

1 file changed

Lines changed: 11 additions & 13 deletions

File tree

src/params.rs

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ pub struct Input {
1111

1212
pub const INPUTS: &[Input] = &[Input {
1313
name: "n",
14-
vec: &['E' as i32, 'W' as i32, 'N' as i32, 'S' as i32],
14+
vec: &[0, 4],
1515
min_uses: 1,
16-
max_uses: 255,
16+
max_uses: 2,
1717
}];
1818

1919
pub struct Matcher {}
@@ -46,23 +46,21 @@ impl Matcher {
4646
}
4747
}
4848

49-
pub const GOAL: &[Num] = &[1, -1, 0, 0];
49+
pub const GOAL: &[Num] = &[6, 0];
5050

51-
pub const MAX_LENGTH: usize = 14;
52-
pub const MAX_CACHE_LENGTH: usize = 10;
51+
pub const MAX_LENGTH: usize = 5;
52+
pub const MAX_CACHE_LENGTH: usize = 5;
5353
pub const MIN_MULTITHREAD_LENGTH: usize = MAX_CACHE_LENGTH + 1;
5454
pub const LITERALS: &[Num] = &[
55-
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26,
56-
27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
5755
];
5856
/// If not 0, include all numbers in 1..=MAX_LITERAL in addition to LITERALS.
59-
pub const MAX_LITERAL: Num = 0;
57+
pub const MAX_LITERAL: Num = 999;
6058

6159
#[rustfmt::skip]
6260
pub const BINARY_OPERATORS: &[BinaryOp] = &[
63-
OP_OR,
64-
OP_SPACE_OR,
65-
OP_OR_SPACE,
61+
// OP_OR,
62+
// OP_SPACE_OR,
63+
// OP_OR_SPACE,
6664
// OP_SPACE_OR_SPACE,
6765
// OP_OR_SYMBOL,
6866
// OP_OR_LOGICAL,
@@ -72,8 +70,8 @@ pub const BINARY_OPERATORS: &[BinaryOp] = &[
7270
// OP_SPACE_AND_SPACE,
7371
// OP_AND_SYMBOL,
7472
// OP_AND_LOGICAL,
75-
OP_LT,
76-
OP_LE,
73+
// OP_LT,
74+
// OP_LE,
7775
// OP_GT,
7876
// OP_GE,
7977
// OP_EQ,

0 commit comments

Comments
 (0)