forked from eternaldensity/Sandcastle-Builder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlogic puzzles.txt
123 lines (84 loc) · 2.8 KB
/
logic puzzles.txt
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
Solvable boolean logic puzzles.
1 statement:
A: A unsolvable
A: !A paradox
A: A||!A true (tautology)
A: A&&!A false (contradiction)
2 statements:
A: true
B: A true
B: !A false
B: A||B true
B: A||!B true
B: !A||B unsolvable
B: !A||!B paradox
B: A&&B unsolvable
B: A&&!B paradox
B: !A&&B false
B: !A&&!B false
A: false
B: repeat the above ten items but reversing A and !A
A: B
B: A unsolvable
A: B
B: !A paradox
(repeat the above two items in reverse for A: !B)
A: A&&B A is false to avoid paradox below
B: A&&!B B is false because A is false
A: A||B A is true to avoid paradox below
B: A||!B B is true because A is true
Can flip the !s around to reverse the roles of A and B or to make them unequal
A: A||!B Same as A: !B, B: !A
B: !A||B A and B are unequal but which is what is unsolvable
3 statements:
A: B
B: C
C: A unsolvable
A: !B
B: C
C: A paradox
A: !B
B: !C
C: A unsolvable
A: !B
B: !C
C: !A paradox
A: B&&C false because B and C are exclusive
B: !A true because A must be false
C: A false because A must be false
A: B&&C false because B and C are exclusive
B: C&&!A false because C is false
C: B&&A false because A must be false
A: B&&!C paradox: if A is true B is true and false while C is false and true, if A is false then B is true and C is false which means A is true
B: !A
C: A
A: B&&!C unsolvable: consistent whether A is true or false
B: A
C: !A
A: B&&!C false: if it was true, C is both false and true
B: C&&A false because A must be false
C: !A true because A must be false
A: B&&!C false: if it was true, C would be both false and true
B: A false because A must be false
C: A false because A must be false
A: B&&!C false: if it was true, B would be both true and false
B: !A true because A must be false
C: !A true because A must be false
A: B&&!C false: if it was true, B would be both true and false
B: !A true because A must be false
C: !A&&!B false because B must be false
A: C
B: C
C: !A||!B paradox
A: C true
B: C true
C: !A||B true: if false, contradiction
Generating puzzle:
Method 1: generate a contradiction, then provide an || "something that's true"
Method 2: generate a contradiction, then provide an && "something that's false"
Method 3: generate something that is valid in two states then add a contradiction to one possibility
Method 4: generate a tautological statement
Start with core, then add in some extra statements which branch off.
Core:
if 1 statement, make it a tautology or contradiction about itself
if 2 statements, choose values, decide &&/||, force one with a paradox