5 ms·
I haven't looked at the answers yet, but here's what I came up with in pseudocode: A: Would one of the other Gods, who is not Random, say "da" \ if
by tempestn 13y ago
I haven't looked at the answers yet, but here's what I came up with in pseudocode:
A: Would one of the other Gods, who is not Random, say "da" \
if I asked him if God C was Random?
(DA) {
:God A or B is Random.
C: Does "da" mean "yes"?
(DA) {
:God C is True.
} (JA) {
:God C is False.
}
C: Would you say "da" if asked whether God A is Random?
(DA) {
:God A is Random
:God B is !God C.
} (JA) {
:God B is Random.
:God A is !God C.
}
} (JA) {
:God A or C is Random.
B: Does "da" mean "yes"?
(DA) {
:God B is True.
} (JA) {
:God B is False.
}
B: Would you say "da" if asked whether God A is Random?
(DA) {
:God A is Random
:God C is !God B.
} (JA) {
:God C is Random.
:God A is !God B.
}
}
I found it helpful to build the logic assuming they would answer "yes" and "no" in English. Once that was done it was fairly simply to modify it to handle the da/ja.