-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgame_state_sample.yaml
More file actions
127 lines (97 loc) · 1.99 KB
/
game_state_sample.yaml
File metadata and controls
127 lines (97 loc) · 1.99 KB
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
123
124
125
126
127
compareTriangleTo3: &compareTriangleTo3
compare:
item: triangle
target: 3
compareTriangleTo1: &compareTriangleTo1
compare:
item: triangle
target: 1
anyPairCompare: &anyPairCompare
compare:
any_pair: true
parityOfTriangle: &parityOfTriangle
parity:
item: triangle
parityOfSquare: &parityOfSquare
parity:
item: square
parityOfCircle: &parityOfCircle
parity:
item: circle
countOfNumber1: &countOfNumber1
count:
number: 1
countOfNumber3: &countOfNumber3
count:
number: 3
countOfNumber4: &countOfNumber4
count:
number: 4
countOfNumber3Or4: &countOfNumber3Or4
count:
one_of: [3, 4]
oneNumberGreatest: &oneNumberGreatest
greatest_item: true
oneNumberLeast: &oneNumberLeast
least_item: true
oneNumberOutstanding: &oneNumberOutstanding
outstanding_item: true
hasPair: &hasPair
has_pair: true
hasOrder: &hasOrder
has_order: true
countOfEven: &countOfEven
count:
parity: even
totalSumParity: &totalSumParity
parity:
sum: true
compareTriangleToSquare: &compareTriangleToSquare
compare:
item: triangle
target: square
compareTriangleToCircle: &compareTriangleToCircle
compare:
item: triangle
target: circle
compareSquareToCircle: &compareSquareToCircle
compare:
item: square
target: circle
majorParity: &majorParity
major_parity: true
sumOfAllComparedTo6: &sumOfAllComparedTo6
compare:
sum: [triangle, square, circle]
target: 6
sumOfTriangleAndSquareComparedTo6: &sumOfTriangleAndSquareComparedTo6
compare:
sum: [triangle, square]
target: 6
parityOfAllSum: &parityOfAllSum
parity:
sum: true
anyItemParity: &anyItemParity
parity:
any_item: true
countOfRepetitions: &countOfRepetitions
count:
repetitions: true
validators:
A: *countOfNumber1
B: *majorParity
C: *parityOfAllSum
D: *sumOfTriangleAndSquareComparedTo6
E: *hasPair
F: *hasOrder
tests:
333:
D: false
A: false
F: true
351:
E: true
D: false
B: true
315:
A: true