From 170d74c44a3d37f060e30b63e244159e3e985d77 Mon Sep 17 00:00:00 2001 From: cutekibry Date: Sat, 17 Feb 2024 01:35:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(expr=5Fvalidator.gd):=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B9=98=E6=B3=95=E7=9B=B8=E9=82=BB=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 考虑到 P * Q = P Q,而常量又和变量形式上等价,为了方便玩家理解, 将 ExprValidator 修改为允许常数和常数相邻,或常数和变量相邻。 --- scripts/expr_validator.gd | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/expr_validator.gd b/scripts/expr_validator.gd index 75513b6..d6a64d5 100644 --- a/scripts/expr_validator.gd +++ b/scripts/expr_validator.gd @@ -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 """ """ @@ -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] ] ## 字符类型。