Skip to content

Commit cd0f01e

Browse files
committed
Add documentation for 'disallowed'
1 parent 6a28e8c commit cd0f01e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

docs/user.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,15 @@ Each pair of expressions is equivalent, and would be marked as "correct" by comp
4242

4343
### Optional parameters
4444

45-
There is currently one optional parameter that can be set: `enforce_expression_equality`.
45+
There are two optional parameters that can be set: `enforce_expression_equality` and `disallowed`.
4646

4747
### `enforce_expression_equality`
48+
4849
If this Boolean parameter is true, the response and the answer must be strictly equal, i.e in the same form.
50+
51+
### `disallowed`
52+
53+
This parameter is a list of strings (`"and"`, `"or"`, `"not"` or `"xor"`). If one of these strings is present in the list, that operation
54+
will be disallowed. For example, responding `A | B` to an answer of `~(~A & ~ B)` would normally be considered correct, but if a
55+
`"disallowed": ["or"]` parameter were added, it would be considered incorrect. This could be useful for questions on De Morgan's laws, such as
56+
expressing a function using only NAND gates.

0 commit comments

Comments
 (0)