Skip to content

Commit

Permalink
fix(expr_validator.gd): 修复乘法相邻规则
Browse files Browse the repository at this point in the history
考虑到 P * Q = P Q,而常量又和变量形式上等价,为了方便玩家理解,
将 ExprValidator 修改为允许常数和常数相邻,或常数和变量相邻。
  • Loading branch information
cutekibry committed Feb 16, 2024
1 parent 87473bd commit 170d74c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/expr_validator.gd
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ val: Q/0/1
< 0 1 1 0 1 1
( 0 0 1 0 1 1
) 1 1 1 1 1 1
Q 1 1 1 1 1 0
0 1 1 1 1 0 0
Q 1 1 1 1 1 1
0 1 1 1 1 1 1
"""

"""
Expand All @@ -46,8 +46,8 @@ const IS_PAIR_VALID := [
[0, 1, 1, 0, 1, 1],
[0, 0, 1, 0, 1, 1],
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 0],
[1, 1, 1, 1, 0, 0]
[1, 1, 1, 1, 1, 1],
[1, 1, 1, 1, 1, 1]
]

## 字符类型。
Expand Down

0 comments on commit 170d74c

Please sign in to comment.